PDA

View Full Version : port config.



tamertokgoz
- 24th July 2008, 19:47
I wanna use port a (analog input) for analog digital coversation
other port as digital
port b for lcd output
input port c 2 for frequency measurement
port c 3 scl
port c 4 sda
port c 6
port c 7

for rs 232 comminication with max 232

and port d all digital output

how can I config ports
please help ....

skimask
- 24th July 2008, 20:34
Assuming you're using PicBasicPro (like the title of this section of the forum says), I assume you are using MeLabs PicBasicPro, and therefore, I can infer that you have or have access to the PicBasicPro manual, which contains instruction on how to configure an ADC port, how to set ports for input and/or output, how to set up a serial port (baud rates, pin configuration, etc) and how to set up the I2C module and pins.
So what exactly is the problem then?

manwolf
- 25th July 2008, 00:47
I find the Help button in PBP is very useful also. Try ADCIN, code you can cut and paste...

skimask
- 25th July 2008, 12:25
I find the Help button in PBP is very useful also. Try ADCIN, code you can cut and paste...
I think the HELP button you may be referring to is actually in Microcode Studio...
But yes, it is VERY helpful...