Hi, where can I find c routine for MAX3100 irda - 8051 (set, send, receive)? I was able only to find assembler code for UART<->irda.
thanks
The example code at www.maxim-ic.com/.../8051.DOC is standard 8051 assembler - it will work with any 8051!
It's only two pages: it really shouldn't be that hard to convert to 'C' - especially as most of it is just loading SFRs!
Assembler:
MOV TMOD,#20H ;t1 baud
simply becomes:
TMOD = 0x20;
It uses bit-banged SPI - if your chip has hardware SPI, then you can convert to using that yourself.
OK,
thank you all.