Hello Leonel,
Iīm trying to write a simple example that will make my ledīs flash every 20s.
I understand timerīs in PIC16F872 because they have interrupts associated (TMR1), but iīm using PIC16F57 which only has one timer, TMR0, and no interrupts...
I don't know what you want to do... but how complicated do you want to get????
psuedo code..(that just may work, but haven't tested it).
TRISB=%00000000
Loop:
Portb.0 = High
Pause 500
Portb.0=Low
Pause 20000 'pause 20 seconds.
goto loop
end
Dwayne
Last edited by Dwayne; - 29th June 2005 at 17:53.
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks