#130495 - kar2007 - Mon Jun 04, 2007 3:37 am
Hi Friends,
i am really have a pleasure to meet you all.
i am new guy to gameboy.....
here my problem is ,
wheni try to receive value from pc(the values like 1234 1234 ng), i can't receive to my gameboy ...i can receive only two bytes (like AA)..i can't receive more then two bytes..
here are my code..
#define REG_SIOCNT *(volatile unsigned short int *)(0x4000128) // Serial control
#define REG_SIODATA8 *(volatile unsigned short int *)(0x400012a) // Serial data
#define REG_RCNT *(volatile unsigned short int *)(0x4000134) // General IO
u8 rcvByte;( u8 is unsigned char);
if ((REG_IF & BIT7) == BIT7) // uart interrupt
{
intFlag = REG_IF; //copy interrupt flags
if ((REG_SCCNT & BIT5) != BIT5) // check whether got receive any data or not...
{ rcvByte = (u8)REG_SIODATA8;
-------------------------------------------------------
i really dn't know why i can't receive??
and i also i need to printout the values i receive from pc through rs232..
if u have any print function just post to me ..
i am really greatful to you if u help me in the initial stage..
waiting for your valuable reaply..
with regards,
kar2007..
i am really have a pleasure to meet you all.
i am new guy to gameboy.....
here my problem is ,
wheni try to receive value from pc(the values like 1234 1234 ng), i can't receive to my gameboy ...i can receive only two bytes (like AA)..i can't receive more then two bytes..
here are my code..
#define REG_SIOCNT *(volatile unsigned short int *)(0x4000128) // Serial control
#define REG_SIODATA8 *(volatile unsigned short int *)(0x400012a) // Serial data
#define REG_RCNT *(volatile unsigned short int *)(0x4000134) // General IO
u8 rcvByte;( u8 is unsigned char);
if ((REG_IF & BIT7) == BIT7) // uart interrupt
{
intFlag = REG_IF; //copy interrupt flags
if ((REG_SCCNT & BIT5) != BIT5) // check whether got receive any data or not...
{ rcvByte = (u8)REG_SIODATA8;
-------------------------------------------------------
i really dn't know why i can't receive??
and i also i need to printout the values i receive from pc through rs232..
if u have any print function just post to me ..
i am really greatful to you if u help me in the initial stage..
waiting for your valuable reaply..
with regards,
kar2007..