nifleheim13
Junior Member level 1
I've look through the forums but i can't seem to find an answer for a beginner like me......i've been studying how to program PIC16F84A for my project.....i know some of the basics now but what i really need is to connect it to the rs232 port.....for example, i will send data from Visual Basic 'MsComm1.Output = Chr$(123)'.....the pin #3 of rs232 is connected to RA0 of PIC16F84A (or any I/O port), from here on i don't know what to do next.....i don't know how the pic accepts the data from the rs232 port....i've tried this and unluckily it doesn't work
movlw PORTA,0
movwf PORTB
i'm trying to make the 8 pins of PORTB connected to an LED lit using VB6.0.......i think that if i can't make a simple program like that then i can't make what i really need to do.....
**this is what the real process should be.....i'll just use again LEDs....
*the PIC connected to the rs232 port is the master PIC
*the 4 PICs connected to the master PIC are the SLOT PICs (4 pic stands for 4 slots)
*the 4 LEDs connected to the master pic determines which slot is selected
*the LEDs connected to the slot PICs stands for ports (3 ports per slot)
****here's the process....
VB6.0 will send two values, the first value is for the slot number and the second value is the port number for the selected slot.....2 LEDs will lit, the first one is to determine which slot is selected and the second one is to determine which port....
is this possible with the PIC i selected?....i think it is...i just don't have the knowledge and it must be hard.....and if it isn't possible...what PIC would you recommend?
i hope you can help me....thanks.....^_^
movlw PORTA,0
movwf PORTB
i'm trying to make the 8 pins of PORTB connected to an LED lit using VB6.0.......i think that if i can't make a simple program like that then i can't make what i really need to do.....
**this is what the real process should be.....i'll just use again LEDs....
*the PIC connected to the rs232 port is the master PIC
*the 4 PICs connected to the master PIC are the SLOT PICs (4 pic stands for 4 slots)
*the 4 LEDs connected to the master pic determines which slot is selected
*the LEDs connected to the slot PICs stands for ports (3 ports per slot)
****here's the process....
VB6.0 will send two values, the first value is for the slot number and the second value is the port number for the selected slot.....2 LEDs will lit, the first one is to determine which slot is selected and the second one is to determine which port....
is this possible with the PIC i selected?....i think it is...i just don't have the knowledge and it must be hard.....and if it isn't possible...what PIC would you recommend?
i hope you can help me....thanks.....^_^