Hi
I got common anode 7 segment led display and PIC microcontroller.
The connection should be made like this between led display and PIC, to see the output in display via PORTB of PIC, right?
Image – PIC (PORTB) and 7 segment led connection with transistor
I don’t have enough transistors right now to make this connection.
Since charge flows from high potential to low potential, I came up with this connection (connecting the PORTB pins directly to the cathode pins of 7 segment led)
Image – PIC (PORTB) and 7 segment led connection without transistor
Will the microcontroller be damaged by this connection?
Actually I tried this connection via PORTC pins. 7-segment led glowed but not according to the program. When I removed 7 segment led display and placed 7 individual leds in it, they got worked correctly according to the program.
My questions are:
I got common anode 7 segment led display and PIC microcontroller.
The connection should be made like this between led display and PIC, to see the output in display via PORTB of PIC, right?
Image – PIC (PORTB) and 7 segment led connection with transistor
I don’t have enough transistors right now to make this connection.
Since charge flows from high potential to low potential, I came up with this connection (connecting the PORTB pins directly to the cathode pins of 7 segment led)
Image – PIC (PORTB) and 7 segment led connection without transistor
Will the microcontroller be damaged by this connection?
Actually I tried this connection via PORTC pins. 7-segment led glowed but not according to the program. When I removed 7 segment led display and placed 7 individual leds in it, they got worked correctly according to the program.
My questions are:
- Is connections I mentioned with transistor right?
- Will the microcontroller be damaged by the connection I made without transistor?
- If not, will this connection work?