Hola,
Necessito ayuda por favor para programar un pic (16f877a em pbp) para se conectar con la VDIP2 (host usb)
http://apple.clickandbuild.com/cnb/shop/ftdichip?productID=79&search=VDIP2&op=catalogue-product_info-nullhttp://www.vinculum.com/documents/datasheets/DS_VDIP2.pdfGostaria de me conectar com um nokia 6230 con el data cable usb por forma de comandos AT .
Dudas - Conexion e codigo??
- Mi conexion pic - vdip
Rx - Tx
Tx - Rx
Prt. - Cts
Prt. - Rts
Prt. - Rs
- Mi Codigo.
define OSC 20
Include "modedefs.bas" ' Include serial mode
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_SPBRG 129 ' 9600 Baud @ 20MHz, 0.16%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
'bits 2 & 3 temporarily inputs
TrisC.2=0 'active LOW reset line to VDIP2
TrisC.3=1 'Cts# Flow control to VDIP2
TrisC.4=1 'Rts# Flow controlto from VDIP2
TrisC.5=0 'Led to see if pic and code is ok blink 3 times
TrisC.6=0 'Rx VDIP2
TrisC.7=1 'Tx VDIP2
B0 var byte
High portb.5
Pause 500
Low portb.5
Pause 500
High portb.5
Pause 500
Low portb.5
Pause 500
Start:
High PortC.2 'active LOW so not reset
Low PortC.3 'pull VDIP2 pin CTS low
Input PortC.2 'from VDIP2 pin RTS
High PortC.6 'condition serout pin to mark state
Pause 5
HSEROUT ["AT", 13]
HSEROUT ["ATD=+351xxxxx000;", 13]
STOP
end
Ayudai por favor.
Gracias.