ADCON0 = 0 and CM1CON0.3 = 0 should set all pins on the 12F510 to digital IO.
Type: Posts; User: shahidali55; Keyword(s):
ADCON0 = 0 and CM1CON0.3 = 0 should set all pins on the 12F510 to digital IO.
Hi Len,
ADCON1.5 = 1 will set AN2 as VREF- input and ADCON1.4 = 1 will set AN3 as VREF+ input. Also, bits 6 and 7 of ADCON1 are unimplemented so setting them to either one or zero will not...
Referring to the PIC18F2420 datasheet (page 108), the sequece that can be used to initialize portb is as below:
CLRF PORTB
CLRF LATB
MOVLW 0Fh
MOVWF ADCON1
This may or may not be relavent, buy try disabling the watchdog timer.
A 0.1uF capacitor accross VDD and VSS is always recommended. Just make sure it is located real close to the PIC.
Also, you can add a 5.1V zener diode in between VDD and VSS like below:
6478
Maybe you can do something like this . . .
First, find out when x increments by 1, what is increment in frequency (call this the step size)
Second, find out what is the frequency when x = 1 (call...
On 16F913, Port C is shared with the VLCD module. To uses this as digital I/O, you will need to clear the VLCDEN bit in LCDCON register.
A nice encoder and decoder implemented in PBP (SIRC protocol).
http://www.rentron.com/PicBasic/IR_Chips.htm
Another option to set PortA to digital automatically is Darrel's "AllDigital.pbp" . It will set the required registers on the selected device to make PortA digital and there is also a provision to...
Hi Dave,
According to the datasheet, the number of erase/write cycles this chip can take is 100,000. So this cannot be as to why you are seeing the error.
Can you check if the MCLR pin goes to...
Hi miragabe,
In most programmers the MCLR pin will go to about 13 volts only during programming (for just a few seconds after clicking the program button). Are you able to program any other PIC...
Try 47ohm resistor between PWM pins and mosfet gate
Try the HT648L. This will decode data from the HT640.
Just make sure you select the same address as the one selected on the encoder (HT640)
Has the incPID_mc.pbp file been modified?
I can see several commented lines.
Has Henrik posted this file somewhere on the forum?
Try this and let me know how it works out.
5472
Not possible.
Just define OSC as 4 or something and use 32Khz crystal with LP OSC fuse (internal RC osc can also be used).
Everything will run much S-L-O-W. Like 122.0703125 times slower if OSC is...
Try this.
It is a working PBP example.
http://www.compsys1.com/support/PBP_Files/t6963c/
Modify it to suit your setup.
Maybe this will work,
until ((((mode = 1) and (button1 = buttonpress)) or ((mode = 1) and (button2 = buttonpress))) or ((mode = 2) and (button3 = buttonpress)))
You could also use a variable to...
The output of the hardware PWM module in the 16F628A is on PORTB.3. Hence this the only pin you can use for the PWM output.
Do you need exactly the same signal on 8 pins? If so, you can just take...
Could it be some sort of corrosion between the OSC1 and OSC2 pins?
I've experienced something similar due to oxide formation between the pins . . .
After searching the whole forum for an hour or so i stumbled upon this page.
Finally i can dynamically access bits of a variable. This has really helped me a lot.
Thank you Melanie .
rmteo,i know it can be done in 101 ways but this is just awesome.
He has done it just 1Kb of ROM with no extra hardware.
Check out AVR USB.http://www.obdev.at/products/avrusb/index.html
It is...
Yes it has been done . . ....
Not a bad idea. A clock does always comes in handy.
The last 2 digits were put upside down so as to get a colon from combining the two dot points on the oppositely placed standard 7-segment...
Thanks DT.
That is one really neat breadboard.
Did you notice the hourly on screen animation?
Just after the two LOOKUP statements there is a tricky piece of code that used to blink the...