
Originally Posted by
Kenjones1935
Joe,
Are you saying that all I need to do to use PORTB is figure out how to appropriately configure it?
If so, please give me a hint? I am soooo close.
Ken
Ken,
I am not an expert on pulseout or pulsein, and I have not read the manual lately, but I believe they are digital commands, which by default should require you to disable the analog functions on the pin you are using.
On this chip you have,
ADCON0
ADCON1
ANSEL
ANSELH
CMCON0
CCP1CON
CCP2CON
CM1CON0
CM2CON0
CM2CON1 and a couple more which all have effect on the I/O. Get into the data sheet and read about them, they are all listed in the index of the data sheet, and see how to set them up. Remember if a bit is SET it is a 1 if cleared it is a 0.
When you come out of the data sheet you will be a much more "Savy" programmer.
Last edited by Archangel; - 2nd March 2010 at 16:26.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks