It´s a PIC18F45K80
Type: Posts; User: bmoe79; Keyword(s):
It´s a PIC18F45K80
Hi.
I have eight sensors with digital output connected to a port and now I want to in the quickest way get only the highest set bit in to a variable.
if port = 110000
I want var = 000000
if...
Hi.
I use a PIC18F45K80 @ 64MHz.
I have a seperate pbp file with my LCD menu code, witch I include at the end of my main code.
In my menu file I declare some variables and initialize them.
The...
Thanks Henrik.
Of cource it should be %00000000 to set as outputs, hjärnsläpp.
I do like below @ 64mHz, but no capcitive load, and all A/Ds is off. I'll just use latx.
porta.0 = 1
porta.1 = 1...
Hi.
To initialize my ports I have always done something like this:
'set all pins on portb high
portb = %11111111
'set all pins on portb to outputs
trisb = %11111111
A couple of days ago I...
Setting the outputs with latx.x instead of portx.x solved the problem.
Tanks.
After taking a quick look in the datasheet it seems like that coulld be it.
I will test that tomorrow.
Thanks.
Same thing again. So weird.
TRISx, PORTx, ANCONx and ADCONx is like below in my code
TRISA = %11100000 'porta direction 0=OUTPUT 1=INPUT
PORTA = %00000000 ...
How weird, in the code everything is ok so it must have happened when I pasted the code.
Here is the code again
' PIC18F45K80 Configuration Bit Settings
#CONFIG
CONFIG RETEN = OFF
...
Hi.
I have a problem that if I set porta.0 and portb.2 high with porta.0=1 and porta.2=1 then they will not go high, but if I do HIGH porta.0 and HIGH porta.2 then they will.
porta.1 and porta.3...
Thank you very much, now it works.
Hi.
Im using the PIC18F45K80 for the very first time and use a 64MHz external clock source.
To test the new hardware, and to see that it's alive, I just blinks en LED.
The example blinks the LED...