• porting C code from AVR to 8051
    The code does alot of IO port operations. Keil uses SFR and SBIT declarations whereas the AVR code uses defines to set IO port locations and byte operations to set/clear/test bits. There has to be...
  • reading and skipping from port
    Hi All,, I am trying to write a simple program that do the following. it increments a 3-bit binary number after a delay. It looks like following. do{ if (bin_num++ > 0x7) bin_num=0; deley...
  • Porting from C51 to GCC
    Hi, I'm porting my application from C51 compiler to GCC compiler. I am wondering how I can map variables to absolute memory locations in GCC. I am currently using '_at_' keyword for doing that in...
  • Reading from a port
    Hi, I have just started learning embedded programming on my own. The book I am using (Embedded C Book by Micheal Pont) says: "because of the underlying hardware, we can only read from a pin if the...
  • Get a character from serial port
    Please bear with me, I am new to Embedded c. We are using a ADUC848 Microcontroller that has an 8051 based core. We are using Keil uVision 3. What we need to do is send a #TST# string out from...