Hi, Sasi,
Regarding your question, for example, if you want to use SCI0, you have to configure the SCI0 pin as SCI0 pins because the pins are multiplexed.
GPIO_E_PER|=0x03; //1 = Pin is for peripheral (Normal mode)
//configure the baudrate of SCI0, it is dependent on the IPBUS clock
SCIBR=0xxxxx; //SCI Baud Rate = IPBus Clock/(16 × SBR)
SCICR=0x00AC; enable both transmitter and receiver and enable interrupt, SCI is 8N1(8 bits, one start and one stop mode, no parity mode)
IPR8|=0x0xC0; //set the priority of SCI transmitter INT
//open interrupt by clearing I0/I1 bits in SR reg
Cpu_EnableInt();
//asm(bfclr #$300, SR);
SCIDR='a';
for(;;)
{
}
void sci_int(void)
{
SCIDR='a';
}
In the vectors.c
JSR Cpu_Interrupt /* Interrupt no. 68 (Unused) - ivINT_SCI0_TxEmpty */
to
JSR Fsci_int; Cpu_Interrupt /* Interrupt no. 68 (Unused) - ivINT_SCI0_TxEmpty */
But I dot test the code, pls have a try.
BR
XiangJun Rong
