Hello Henrik,
you and I have talked about this code a few times now. I had to change my name to protect the guilty! Actually I lost my original password and tried to recover the password but never...
That code sure doesn't compile but it's not because of RCSTA1.7=0 but rather END SELECT. If I remove END SELECT the reset does compile here.
Since you claim it compiles if you comment out RCSTA1.7=0...
Here is the code listing. The compiler complains about the RCSTA1.7 = 0 command. If I comment it out, the rest of the code compiles fine. The error message is "bad expression"
code:
recvoff:...
You have to be careful when using the pin as an input.
While a series R can help isolate the pin from the ICSP programmer, if the external circuit is driving the pin high then this can change the...
I conect ICSP directly to pins. And from konektor, other part of circuit connect via 2K resistor. If you use pin as inputs, then other hardver driving state of pin. So not to have colision with...
pedja089 Today, 13:19I wouldn't do that. Your safest bet would be to have a jumper you can remove to isolate the output of the HC14 from the PGC/PGD pin while you're programming.
tumbleweed Today, 13:12Thanks,
Not sure how I would have and looking at that register even any value 0's or 1's, it would still work??
Considering the application doesn't require any precise timing, should I provide a...
sounds like you have over written the osccal/ value stored at the top of memory for 12f508.
Most programmers will not reprog that chip when the value is missing.
The old pickit2 can reset a value...
Qualifying Compiler |
Upgrade Description | |
![]() |
Upgrade PICBASIC PRO (PBP) 2.60 or later to PBP3 Gold Edition | |
![]() |
|
|
![]() |
|
|
![]() |
Upgrade PICBASIC Compiler (PBC) to PBP3 Silver Edition |
Re: Direct Register Access not recognized
Hi Paul,
HenrikOlsson Today, 18:36The following compiles here, using PBP 3.1.6.4 and MPASM 5.87:
recvoff:
RCSTA1.7 = 0
while ! TXSTA1.1 :wend ...