8051 microcontroller

Discussion in 'Embedded Systems and Microcontrollers' started by ching fong kee, Jul 19, 2010.

  1. ching fong kee

    Thread Starter Member

    Jun 23, 2010
    42
    0
    Now i'm using MicroC to write the code in C programming on 8051 microcontroller....
    MicroC is using in PIC
    and the problem that i faced is
    when declare a I/O in PIC is
    PORTA = 0;
    TRISA = 0xFC; // inputs except RA1,RA0 p to 4017

    PORTB = 0;
    TRISB = 0; // out
    then how im going to declare the I/O for the 8051?
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Does the MicroC compiler output code specific to your microprocessor?
     
  3. ching fong kee

    Thread Starter Member

    Jun 23, 2010
    42
    0
    i ask my supervisor before, he said it is specific..
     
Loading...