Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to most simply translate 8051 IAR too Keil syntax?

Status
Not open for further replies.

bibo

Junior Member level 1
Joined
May 17, 2001
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
31
8051 iar to keil syntax

Hi all,

any body know which is the simplest way to translate this (IAR DOS) workink port bit instruction in KEIL C?

P3.1=1;

I have changed to

P3^1=1;

but the complier return the following error message
error C141: syntax error near '='

thanks
 

8051 iar to keil syntax

if u use KEIL

u should define bit by :

sbit myDTMF = P4^7; // in

and use it in the code as follow

if (myDTMF == 0) ...


y
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top