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.

Real pic simulator taking input and then blinkin led s..

Status
Not open for further replies.

kishore680

Member level 5
Joined
Mar 14, 2012
Messages
81
Helped
3
Reputation
6
Reaction score
4
Trophy points
1,298
Location
Bangalore
Activity points
1,833
depending upon the state of portb 8 pin.. the first 4 led s should glow or stop glowing.. how to simulate this in real pic simulator..
code is

Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
main()
{
    TRISB=0X80; 
 
    while(1)  // do forever
    {
 
 
             while(portb&0x80)
            { portb=0x0f;
             delay_100ms;
             }
 
 
                 portb=0x00;
                 delay_100ms;
 
 
 
    }
}

 
Last edited by a moderator:

Compile and load hex file in simulator. Add and connect LEDs to portb pins. Set speed (crystal frequency) and run the simulator.
 

i ve assigned RB7 to one of the led;s but i m not getting output.. on the other led 's depending on the state of the input led
 


i need to control the on and off led s which are connected to rb0-rb3 through rb7??? can u tell me hw to do that in real pic simulator?
 

Do you want it like this,
When input to rb7 is at logic 1, LEDs on portb rb0-rb3 turn on and when input is at logic 0 , LEDs turn off?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top