After doing some reading, I found the Logical Operator function will do exactly what I need.
After grabbing the data from PORTA, I
resulta = PORTA & %00001111' Returns 8-bit binary result for...
I am working on a small initial project where I would like to read a six-position dip switch on RA0 to RA5.
My intention is to assign RA0-RA3 to BYTE variable SW4 and RA4-RA5 to variable SW2. I...
My interest is in hardware PWM but PBP cannot manipulate the appropriate registers that is needed to get that low on frequency, as Richard noted.
Have not done it yet but hope to manage it.
...
Yeah, this sounds very strange.
As others have said, after power on and reset (POR) all the pins come up as inputs so they should not go either high or low for any duration. Leakage current into...
its not quite that simple, contemporary chips like 18f27q43 have a pwm module that can use alternative clock sources like the mfosc @[500k] and its that allows 50hz operation, some others have...
richard Yesterday, 12:26Are you talking PWM or HPWM? Isn't using the CCP module automatically HPWM?
I kept hitting my face into the chart in the PBP manual under HPWM that lists lowest possible frequency per oscillator...
if you have leds that illuminate on power up before the pins have been set as outputs then you are doing something very odd
or you have broken something
schematic and code ?
Greetings,
thank you Jerson for your reply.
Regarding "design your project with active low outputs to account for the High-Z input state at power on", what do you mean exactly?
If, for...
Simple answer- you cannot do that.
You should design your project with active low outputs to account for the High-Z input state at power on. Almost every microcontroller, I know, behaves...
Re: I/O Pin status during startup
Many a times, I have used an I/O pin to drive a relay through a transistor. So, assuming I need an active high output to turn on the relay, I have observed (across microcontroller families) that the...
Jerson Today, 04:22