Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
# serial port I/O# emulates a 1 line terminal# at 19200 baudopen "com1:",19200 as #5a$=""k$=inkey$while asc(k$) <> 12# use the scroll down button to exitif len(k$) > 0 rem # send graffiti out serial port print #5,k$; if asc(k$) = 10 print #5, chr$(13); endifendif# check for serial inputs = fn serial(5)if s > 0 then a$ = a$ + get$(#5,s) rem # display input draw a$+" ",10,90 if len(a$) > 32 then a$=""endifk$=inkey$wendclose #5end
Updated Bluetooth and IRComm client serial I/O support.
Palm Universal connector (Tungsten T1, T2, T3, etc) has RS232 signals at RS-232 compatible levels, no voltage level translator from TTL to RS232 is needed. You can connect signals from your Palm Universal connect directly to PC or other compatible serial device.
looking at your link ( http://pinouts.ru/PDA/palm_m125_pinout.shtml ) it appears the Palm serial i/o pins are RS232 rather than UART logic level.from that link:QuotePalm Universal connector (Tungsten T1, T2, T3, etc) has RS232 signals at RS-232 compatible levels, no voltage level translator from TTL to RS232 is needed. You can connect signals from your Palm Universal connect directly to PC or other compatible serial device.this means that the RS232 voltages will be far higher (designed to travel longer distances) than on the UART.the logic will also be reversed (1 becomes 0. 0 becomes 1) between the RS232 and the UART.so to connect your Palm to an ATmega you will need a serial buffer chip like the max232 (or similar) between the ATmega and the Palm.your first step should be getting communication between your ATmega and the PC serial port working.after that just connect the ATmega and max232 to your Palm instead of your PC.dunk.
What would be really cool would be if you found a way to write to the Palm screen pixel by pixel.Just thinking: a roving robot that draws the map of the world (as it bumps into it) onto the Palm screen and responds to 'gestures' made via the pen.
I have an old treo 650 I'd love to hack. Anyone have any experience with it?
Büþô Ðüüüþ øì ü ô ü üüø þüüAýôüüü ýüüýýôüü ý þõüýWüüBô üBôüüõüüüü üü õõýüüüüüüýøüõ üMõüþüüü õþ üýüôþ ô øþ üø ýþþ ýþüõCý õüüøüõôþ üüøôüüõüüþüþýþ üCþü üõú Büüüüüüüü Sõþ õ
#include <avr/io.h>#include <avr/interrupt.h>#include "C:\My_Robots\Reaper.h"int ct=2; int main(){ unsigned int i=1; int checker=0; PORT_on(DDRC,5); //Turns on status LED SREG |= 0x80; //Enables global Inturrupts UCSRB = 0b10010000; //Turns on Recieve Complete Inturrupt, and Rx pin, I left Tx off for debugging UCSRC = 0x86; //Asynchronous mode, 1-bit stop bit, 8-bit character size PORT_off(UCSRC,7); //Lets me access UBRRH, which shares registers with UCSRB (I think this works, but I don't know for sure because I think simulator1 in AVR studio messes this up) UBRRH = 0x0C; //Sets first four bits of Baud Rate, 1100 UBRRL = 0x80; //Sets last 8 bits of Baud Rate 10000000 for a baud rate of 19.2k at 8Mhz (Did I do this right?) Look at table below while (i==1) { if (ct==106) { ct = 0; //This was from another program, but essentially it's an infinite loop } }}ISR(USART_RXC_vect){ ct++; int recieved; recieved = UDR; display(shread(recieved,100),400); recieved = recieved % 100; //This takes the number received and puts it into recieved, then displays the digits individually display(shread(recieved,10),400); recieved = recieved % 10; display(recieved,400);}
the fact both your AVR and Palm are working when you connect them to your PC suggests everything should work.
serial cables come in 2 generic types: Modem (also known as a Straight) and NullModem.
when you see random characters appear at the end of your serial link the things i would be checking are 1. common ground. do you have ground connected on both devices.2. baud rate. is the baud rate the same at both ends?
if you are worried about different character size at both ends, see if you can find a terminal program that displays the ASCII character number rather than the character it's self. this way you will be able to see any pattern in the text received.i don't think it's an issue though as both devices can communicate with hyper terminal using the same settings there.
Because of this, I need ANOTHER NullModem cable to switch the Rx and Tx again?
does your Palm work with hardware flow control switched off?