I am not familiar with the pic18f24k20 nor does my version of PBP support it.
Perhaps someone else knows the order of the ports for this PIC. I could not readily put my hands on the datasheet -...
Type: Posts; User: paul borgmeier; Keyword(s):
I am not familiar with the pic18f24k20 nor does my version of PBP support it.
Perhaps someone else knows the order of the ports for this PIC. I could not readily put my hands on the datasheet -...
I am not sure why you have these two lines – they will always be false since they follow your HIGH and LOW statements ... delete them (in my opinion)
if outputline0=0 then outputline1=1 (these...
... lots of timer examples in the Example Code Section. See these for example:
http://www.picbasic.co.uk/forum/showthread.php?t=2129
http://www.picbasic.co.uk/forum/showthread.php?t=190...
this might help
http://www.picbasic.co.uk/forum/showthread.php?t=4074
In PBP, the 10F202 uses PBPPIC12.RAM, which requests 19 bytes of RAM for PBP system use. The 10F200 only has 16 total bytes of RAM available so it looks like it is a no go with PBP unless you want...
see post #3 here for possible help
http://www.picbasic.co.uk/forum/showthread.php?p=62459#post62459
See Melanie's excellent post here
http://list.picbasic.com/forum/messages/3064/3607.html?
it is for a different processor but converting to the 877a should be straight forward. Reply if you...
The 18F family also allows one to set some interrupts as high priority and some as low priority. If a high priority interrupt occurs, it will complete the High ISR and exit before servicing...
The code provided in this thread could easily be changed to meet your needs.
http://www.picbasic.co.uk/forum/showthread.php?t=2129
I do not know if your Configs are correct but you have additional problems ...
On the 877A
High 0
sets PortB Pin 0 high, not PortC, Pin 0. See manual section 4.11 and then implement...
EDIT: too late - looks like it was solved
It's a Warning and not an Error
http://www.picbasic.co.uk/forum/showthread.php?t=555
http://www.picbasic.co.uk/forum/showthread.php?t=40
>>If no load works then add more decoupler / filter caps.
Sounds like it worked - do you have electrolytic decoupler and ceramic filter caps? Is your power clean? Have you reduced ground loops?...
another thought ...
try removing the LEDs and watching the pins with a scope or DMM. If no load works then add more decoupler / filter caps.
just my 1 cent
PORTA.0 = 1
Pause 1000
PORTA.3 = 1
You need to set the ports as digital ... add
ADCON1 = $0F
I would also suggest using the latches instead of setting the ports directly (but not the...
Hi Jeff,
I have not used Pic Basic Compiler for almost 10 years but here are some comments and items to check/change to get you going.
SYMBOL ANSEL = $9F '$19 IS ANSEL REGISTER
POKE ANSEL,...
>>DIAGNBYTE = NOT DIAGNBYTE
You have used a logical NOT, which returns 1 or 0. You need to use a bitwise NOT. Try
DIAGNBYTE = ~ DIAGNBYTE
Runtimer:
TMR0ON = 1
TMR0IF = 0
IF TMR0IF = 1 THEN HIGH PORTB.4
GOTO Main
Your polling technique has holes. When you enter Runtimer, you clear the flag and turn the timer on. If it...
The math is working great - you overflowed (went beyond 16 bits)
12*10000 = 120000 = $1D4C0 (hex)
keeping the lower 16 bits = $D4C0 = 54464
clear as mud?
Something to try ....
remove (carefully unsolder?) the LED and see if pin goes high low high with a meter. If this works then reconnect up your LED and add decoupler Cap close to Vdd (10uF or...
Sounds like your ASM code starts in column 1 ... indent your code a space or two and see what happens
; FOR EXAMPLE
movwf PORTA ; will not work
movwf PORTA ; will work
Short on time but this might get you started
Rewrite this
R2=10.000/[(5000/ad_res)-1]
to look like this
R2=10.000*ad_res/[5000-ad_res]
calculate the denominator and keep (5000 - ad_res)...
This should get you started (an oldie but a goodie - not Melanie ... her post)
http://list.picbasic.com/forum/messages/3064/3607.html?
google "Hi everyone. How’s everyone doing? Good day!" and you will understand (with the quotes)
1 - What are you using for the power supply?
2 - Do you have decoupling cap close to VDD (to GND)?