SX48 and Datalogger
Hi,
I am new to the SX chip but from reading about it it sounds perfect for a project I need for work. I'm trying to interface with a Memory Stick Datalogger and when I hook it up, I get a green and red flashing light. I have the jumper in UART mode, and ground on pin 1, 5V on pin 3, and data lines on pins 2,4,5 and 6. Any suggestions?
Thanks,
Kevin
I am new to the SX chip but from reading about it it sounds perfect for a project I need for work. I'm trying to interface with a Memory Stick Datalogger and when I hook it up, I get a green and red flashing light. I have the jumper in UART mode, and ground on pin 1, 5V on pin 3, and data lines on pins 2,4,5 and 6. Any suggestions?
Thanks,
Kevin
Comments
regards peter
Thanks
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?
www.iElectronicDesigns.com
·
' Make sure datalogger red jumper is in UART mode
CTS··· PIN RA.0 INPUT· ' Connect to datalogger pin 2(RTS)
TX···· PIN RA.1 OUTPUT ' Connect to datalogger pin 4(RXD)
RX···· PIN RA.2 INPUT· ' Connect to datalogger pin 5(TXD)
RTS··· PIN RA.3 OUTPUT ' Connect to datalogger pin 6(CTS)
Thanks
DEVICE SX48, OSCXT2, TURBO, OPTIONX, STACKX
FREQ 4_000_000
' Make sure datalogger red jumper is in UART mode
CTS··· PIN RA.0 INPUT· ' Connect to datalogger pin 2(RTS)
TX···· PIN RA.1 OUTPUT ' Connect to datalogger pin 4(RXD)
RX···· PIN RA.2 INPUT· ' Connect to datalogger pin 5(TXD)
RTS··· PIN RA.3 OUTPUT ' Connect to datalogger pin 6(CTS)
LED··· PIN RB.0 OUTPUT ' Turns on finished
Thanks
·
When you run it, if the Key is connected, pop out the resonator; if the Key is not connected, put the resonator in (it's either/or).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Thanks everyone!
Thanks again
The SX itself doesn't care what the FREQ directive is -- it will be clocked at whatever the frequency is of the connected resonator/crystal/clock (or the clock generated from the SX-Key).
So, I could put FREQ 4_000_000 and hook up a 20MHZ resonator and the SX will run at 20MHZ. BUT if there is timing (i.e. clock) dependent code in the application, things may not work as expected. Higher-level SX/B commands like PULSIN, PULSOUT, SERIN, SEROUT, etc. will be especially susceptible to incorrect FREQ settings.
So the above would be CORRECT. If you have a FREQ of 4_000_000 and an attached 20MHZ resonator, things could get screwy (depending on the code).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Thanks!
Thanks for all of the help guys. I really appreciate it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php