Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

copying port data from one to another

Status
Not open for further replies.

Varunme

Member
The below code for copying data from one port to another not working in proteus , what can be the reason ?

void main()
{

trisd=0;
trisc=0xff;

portd=portc;

}
 
Nice, easy fix.

Also, depending on which chip you are using, you should set the Latch resgisters instead of the port registers.

LATD = PORTC;
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top