MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

lxd
MAME Fan
Reged: 02/27/14
Posts: 25
Send PM
How to send serial for once 2 bytes to CPU i8051?
04/16/14 07:39 PM


It would lost the first byte.

What shall I do?

m_maincpu->i8051_set_serial_rx_callback(read8_delegate(FUNC(bigmario_state::data_to_i8031),this));

READ8_MEMBER(bigmario_state::data_to_i8031)
{
return m_serial_data_in;
}

THE OTHER PLACE:
m_serial_data_in = 0x01;
m_maincpu->set_input_line(MCS51_RX_LINE, ASSERT_LINE); //MCS51_RX_LINE P3.0: Serial Port Receive Line
m_maincpu->set_input_line(MCS51_RX_LINE, CLEAR_LINE);
m_serial_data_in = 0x02;
m_maincpu->set_input_line(MCS51_RX_LINE, ASSERT_LINE); //MCS51_RX_LINE P3.0: Serial Port Receive Line
m_maincpu->set_input_line(MCS51_RX_LINE, CLEAR_LINE);







Entire thread
Subject Posted by Posted on
* How to send serial for once 2 bytes to CPU i8051? lxd 04/16/14 07:39 PM
. * Re: How to send serial for once 2 bytes to CPU i8051? lxd  04/17/14 05:45 PM
. * Re: How to send serial for once 2 bytes to CPU i8051? Roberto Fresca  04/19/14 03:45 AM
. * Re: How to send serial for once 2 bytes to CPU i8051? lxd  04/20/14 06:57 AM
. * Re: How to send serial for once 2 bytes to CPU i8051? lxd  04/20/14 06:58 AM
. * Re: How to send serial for once 2 bytes to CPU i8051? StilettoAdministrator  04/19/14 04:59 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 5 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4215