GameBoy Advance serial through propeller?
Botdocter
Posts: 271
I found a 1 euro working gameboy advance on the flae market.
I opened it up because i could end up using one of the components. I found 2 conn. called sd and sc. These are attached to the memory(ram) aswell as the main cpu.·Now i want to output this serial line to the terminal.
here is wat i have untill now but it only gives me "0" and "1". what do i do wrong?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 Parallax Propeller Robot Control Board
1 Memsic MX2125 accelerometer/ tilt
1 Parallax Ping))) ultrasonic sensor
a few motors and a whole lot of chaos!
I opened it up because i could end up using one of the components. I found 2 conn. called sd and sc. These are attached to the memory(ram) aswell as the main cpu.·Now i want to output this serial line to the terminal.
here is wat i have untill now but it only gives me "0" and "1". what do i do wrong?
CON _CLKMODE = XTAL1 + PLL16X _XINFREQ = 5_000_000 CON sda = 0 sck = 1 OBJ ser : "FullDuplexSerial" PUB Main ser.start(31, 30, %0000, 9600) dira[noparse][[/noparse]0]~ dira[noparse][[/noparse]1]~ repeat ser.dec(sda) ser.tx(9) ser.dec(sck) ser.tx(13)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 Parallax Propeller Robot Control Board
1 Memsic MX2125 accelerometer/ tilt
1 Parallax Ping))) ultrasonic sensor
a few motors and a whole lot of chaos!
Comments
I'm not entirely sure what you are trying to do, but if it's print the state of pins 0 & 1 then you need something along the lines of :
You were printing the constant sda before, whereas you appear to want the state of the pin referenced by the constant.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.
so the first step was to try to read anything. serialdata that is...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 Parallax Propeller Robot Control Board
1 Memsic MX2125 accelerometer/ tilt
1 Parallax Ping))) ultrasonic sensor
a few motors and a whole lot of chaos!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 Parallax Propeller Robot Control Board
1 Memsic MX2125 accelerometer/ tilt
1 Parallax Ping))) ultrasonic sensor
a few motors and a whole lot of chaos!