Regarding PIC timer interrupt

Discussion in 'Embedded Systems and Microcontrollers' started by elsanthosh, Dec 23, 2008.

  1. elsanthosh

    Thread Starter New Member

    Dec 23, 2008
    2
    0
    Dear sir,

    this santhosh , i need a asm code for PIC timer interrupt . i am using PIC 12F510 microcontroller.

    thank u
    santhosh babu
     
  2. jpanhalt

    AAC Fanatic!

    Jan 18, 2008
    5,699
    907
    Are you sure the 12F510 supports interrupts? John
     
  3. elsanthosh

    Thread Starter New Member

    Dec 23, 2008
    2
    0
    dear sir,

    this santhosh ,i need a asm code for timer in 12f510 microcontroller. i need to generate for 100msec timer.

    thank u
    santhosh babu
     
  4. jpanhalt

    AAC Fanatic!

    Jan 18, 2008
    5,699
    907
    If all you want is a 100 mS pulse, go here:

    http://www.piclist.com/techref/piclist/codegen/delay.htm

    Enter your data (pulse width, frequency), and it will generate the code for you. You may need to use retlw instead of return, but your programmer/assembler will probably catch that error and automatically fix it. I use a PicStart Plus/MPLab, and it does that.

    John
     
    Last edited: Dec 23, 2008
  5. abhijeetscience

    New Member

    Dec 24, 2008
    4
    0
    :(i have optical encoder with 30 slits with 300rpm motor how many (instructions)inputs can a picaxe 28X1 handle .. will they be sufficient for my encoder :confused:
     
  6. nanovate

    Distinguished Member

    May 7, 2007
    665
    1
    maybe what does the datasheet say?
     
Loading...