We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, I'm new to this Keil product [µVision] where can I learn C to write a program in µVision? regards, MB
It's basically ANSI/ISO C, with some extensions. For one, you must use sbit, sfr, or sfr16 to access bit, byte, or contiguous 2 byte registers in the 8051. You can disable integer promotion (a good thing) and enums only require 8 bits if they can fit in 8-bits, 16-bits otherwise. Functions are not reentrant by default. You must add the keyword 'reentrant' to functions that recurse or are truly reentrant. Interrupt Service Routines are declared as:
void isrUart(void) interrupt UART_VECT using REG_BANK_1 { // code }
Try Keil's reference 0-13-753815-4 Schultz C and the 8051