Jump to content

i-levy

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About i-levy

  • Rank
    Newbrie
  1. If you want the delay in seconds: (256 - InitTMR0) * prescaler Delay = ----------------------------------------- Frequency / 4 Or if you want the value to put in TMR0 to get a determinate DELAY: InitTMR0 = 256 - ( DELAY * Frequency ) / ( 4* Prescaler) For example 1 sec delay using a LP crystal 32.768 KHZ Init: option_reg = 00000100b (prescaler = 32) tmr0 = 0 intcon = 10100000b When an interrupt occured don't forget to clear tmr0if. Regards, ilevy
  2. Hi, From where can I donwload the psim.exe for simulator? It's not included into MPLAB Thanks.
×
×
  • Create New...