hi,
In which type of PIC does it work perfectly.??
both 16F84 & 16F628
thanks
hi,
OK, so please post your full code so that we can check it out.
hi,
As you are using MPLAB to assemble your code you should use the 'LIST, INCLUDE and CONFIG' at the start of your code listing. This will avoid the need to EQU all the PIC's special registers.
The ct15 register value is not being decremented to 0, ie: if you preload it with say 0xff [255] it only counts down by to 0xfe and then the program reloads with 0xff.!!!
The flash rate of the LED is VERY fast as you are using only 255 counts of the TIMER0. With a PIC internal clock of 1microsec you will never see the flash.
When you post a code listing wrap the list with the # sign , this will then retain the code formatting.
Look at the attached edit listing.
Thanks Eric!
I try it , but it shows the following screen in the Mplab
""picture attached""
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Asm4PICs2\Bryans1\MPLAB\tmrbug1.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F628A "timerbug1.asm" /l"timerbug1.lst" /e"timerbug1.err"
Loaded C:\Asm4PICs2\16F628A\timerbug1.cod.
[B]BUILD SUCCEEDED: Fri Jan 22 12:20:35 2010[/B]
hi,
... it assembles OK for me .
hi,
Which version of MPLAB are you using, it assembles OK for me in MPLAB V7
Code:Clean: Deleting intermediary and output files. Clean: Deleted file "C:\Asm4PICs2\Bryans1\MPLAB\tmrbug1.mcs". Clean: Done. Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F628A "timerbug1.asm" /l"timerbug1.lst" /e"timerbug1.err" Loaded C:\Asm4PICs2\16F628A\timerbug1.cod. [B]BUILD SUCCEEDED: Fri Jan 22 12:20:35 2010[/B]
Looking at that avatar, I can see why!!!! Hehe.
hi,
Which version of MPLAB are you using, it assembles OK for me in MPLAB V7
Code:Clean: Deleting intermediary and output files. Clean: Deleted file "C:\Asm4PICs2\Bryans1\MPLAB\tmrbug1.mcs". Clean: Done. Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F628A "timerbug1.asm" /l"timerbug1.lst" /e"timerbug1.err" Loaded C:\Asm4PICs2\16F628A\timerbug1.cod. [B]BUILD SUCCEEDED: Fri Jan 22 12:20:35 2010[/B]
thanks Eric!
yes you are right, it was a problem of definition only
I have to take a close look of the way you right the definitions at the heading
but still I don´t know why it the Watch screen does show me in Portb, Status & Trisb= not found
I´ll be in the search!
and...
I own you a beer mate
just tell the me brand!!
thanks
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?