Shop OBEX P1 Docs P2 Docs Learn Events
GameBoy Advance serial through propeller? — Parallax Forums

GameBoy Advance serial through propeller?

BotdocterBotdocter Posts: 271
edited 2010-05-07 02:22 in Propeller 1
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?
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

  • BradCBradC Posts: 2,601
    edited 2010-05-07 01:39
    Botdocter said...

    here is wat i have untill now but it only gives me "0" and "1". what do i do wrong?

    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 :

      ser.dec(ina[noparse][[/noparse]sda])
    
    



    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.
  • BotdocterBotdocter Posts: 271
    edited 2010-05-07 02:06
    well accually i try to communicate with it. I want to send display info to use the lcd.

    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!
  • BotdocterBotdocter Posts: 271
    edited 2010-05-07 02:22
    pin 0 = Read data and pin 1 = write data. just found other pins wich are more accessible. i know they are open for communication. i believe it uses a Z80 system. is that of any help?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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!
Sign In or Register to comment.