From: Manuel B. <web...@ma...> - 2002-03-13 11:27:36
|
Hi! You have to enable all interrupts, that is true. So somewhere in your init-code place a "EA=1;" You do not need to call the ISRs, because the ISRs are called by the Interrupt itself (sdcc places the right jump vectors automagicly ;) You also have to change the values for the timer reload register to make sure the desires baudrate is selected (depends on the crystal frequency) or even your hardware has an own baud-rate generator. ser_ir.c from the sdcc source code is a good starting point. Maybe you also have to rename some register-names (I had to do so for my 80C537). ser_ir.c isn't linked automaticly so you should copy ser_ir.[ch] to your source dir, change it as needed and then compile/link it with your source. Hope it helps, Ciao, Manuel -- ('> http://www.matronix.de/ <`) //\ http://www.e-online.de/public/borchers /\\ V_/_ PGP-Key-ID:832FFAFE _\_V ======= written on an i686 running RedHat 7.2 with kernel 2.4.16 ====== |