MPC566EVB Freescale Semiconductor, MPC566EVB Datasheet - Page 92

KIT EVALUATION FOR MPC565/566

MPC566EVB

Manufacturer Part Number
MPC566EVB
Description
KIT EVALUATION FOR MPC565/566
Manufacturer
Freescale Semiconductor
Datasheets

Specifications of MPC566EVB

Processor To Be Evaluated
MPC56x
Data Bus Width
32 bit
Interface Type
RS-232, Ethernet
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
System Call Functions
3.5.3 IN_STAT
This function (function code 0x0001) checks if an input character is present to receive. A value of
zero is returned in r3 when no character is present. A value of 1 in r3 means a character is present.
Assembly example:
C example:
3.5.4 ISR_REGISTER
This function’s code is 0x0040. For ISR_REGISTER, the vector, handler, device ptr, and arg ptr
are in r3, r4, r5, and r6 respectively.
C example:
3.5.5 ISR_REMOVE
This function’s code is 0x0041. For ISR_REMOVE, the vector is in r3. Nothing is returned.
Assembly example:
3-40
{
}
addi r10, r0, 0x0001
sc
int board_char_present (void)
{
}
int
board_isr_register (int vector, void *handler, void *device, void *arg)
{
}
addi r10, r0, 0x0041
sc
/* assume r3 contains the character */
asm(“
asm(“
asm(
asm(
/*
asm(
asm(
* Vector will normally be 0x0500 for IRQ. Handler should be address
* of your routine. Device and Arg are both used as arguments to
* Handler when it is invoked. Ie. handler(device,arg); It is
* intended that Device point to the device. If the handler is
* registered OK, 1 is returned, otherwise 0.
*/
Freescale Semiconductor, Inc.
For More Information On This Product,
addi r10, r0, 0x0000”); Selects the function
Select the function
"addi
Selects the function
sc”);
"sc");
"addi
"sc");
The character is returned in r3
Make the call, r3 contains the response (yes/no).
MPC564EVB User’s Manual
Go to: www.freescale.com
r10,r0,0x0001");Select the function
r10,r0,0x0040");
The character is returned in r3
Make the call, r3 contains the response (yes/no).

Related parts for MPC566EVB