is that just connect the TX pin of the pic to the max232 pin11 ? because i cant get the output from hyperterminal..
is that just connect the TX pin of the pic to the max232 pin11 ? because i cant get the output from hyperterminal..
my configuration bits is set as the picture.. but still cant make the pic it display thing on the hyperterminal...still got any suggestion?
The first thing we need to do is make sure the PIC is running at the speed you think it is, or know what speed it is running at.
These USB chips can be confusing ( for me anyways ) when it comes to setting the PLL and all. Bruce has a good explanation here that I refer to.
http://www.picbasic.co.uk/forum/show...85&postcount=4
So if you set the configs as he has them the PIC should be running at 48MHz.
DEFINE OSC 48
To check the speed write a code that will blink an LED at one second on and one second off.
Then refer to the PBP manual under SEROUT2. There it shows how to connect the chip to a PC. Send some text to a terminal.
When this is all working we can "talk" to the VDIP.
Dave
Always wear safety glasses while programming.
for me also confuse for that part...so i change the pic 18f4550 to pic16f873A..this will more easy (i think)...now i try make it working on hyperterminal ....
i still cannot display on the hyperterminal...still got any solution?
Darn...
Check the pick with a one second blink to see if it is running at the expected speed?
Using a 232 type chip between PIC and PC?
Post the exact code and configs you are testing with.
Maybe we will see some thing.
Dave
Always wear safety glasses while programming.
i testing with the code i post b4..i got connect to 232 using max232..i already test the mode with 84,8276
INCLUDE "modedefs.bas"
DEFINE OSC 20
DEFINE LCD_DREG PORTA
DEFINE LCD_DBIT 0
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 5
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 4
DEFINE LCD_RWREG PORTB
DEFINE LCD_RWBIT 6
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50
TXD VAR PORTC.7 'AD0 TXD VDIP2 connect RX
RXD VAR PORTC.6 'AD1 RXD VDIP2 connect TX
Flow VAR PORTC.0 'AD2 RTS
Start:
HIGH RXD
PAUSEUS 10
SEROUT2 RXD,84,["ECS",13]
HIGH RXD
PAUSEUS 10
SEROUT2 RXD,84,["IPA",13]
HIGH RXD
PAUSEUS 10
SEROUT2 RXD,84,["A:",13] 'choose source disk
HIGH RXD
PAUSEUS 100
SEROUT2 RXD,84,["DIR",13]
GOTO Start
Bookmarks