> > Hello! > > >> - The 36 * 8 General Purpose RAM (GPR) > >> - And the 64 * 8 EEPROM DATA memory, what is it used for? > > About the GPR... I think we use it for our vairables right? If so, how do I > define, lets say a variable named COUNT at the beginning of the mem? Do we > have to define the lenght of the variable or is it fixed? If you're in pic assembly, the only type of container you have is 8 bits wide. > > >So the overflow is connected to an TMR0 overflow bit that gets set to a 1 > >each time the timer overflows. And like all other interrupt driven bits in > >the PIC, it has a TMR0 interrupt enable, and the Global Interrupt Enable. So > >if both the TMR0 interrupt enable and the GIE are on, and an overflow occurs, > >then the PIC is interrupted. > > Anhh... this explains it all! At last I understand the timer! Thank you > very much for the explanations and exemples... You're welcome. > > >Be sure after detecting an overflow that you set the TMR0 overflow bit back > >to zero so you can detect the next overflow and get out of the interrupt ( > >if you decided to use it) cleanly. > > Oh ok... but when a timer overflow occurs, the TMR0 overflow bit gets set and > the GIE bit cleared right? And in order to get things back I have to clear > TMR0 overflow bit and set GIE? If you have an interrupt that's the way it works I believe. But I think that the RETFIE turns GIE back on automagically. Can anyone confirm/deny that? BAJ