So I want to read data from the A/D potentiometer and then display the status of the voltage on a 8*8 matris led. The idea is to use a column of the 8*8 and display the value there (0-7)
So, the A/D goes from 0-255 but I want to have 0-7 from that, I need to left justify the value?
Nothing works for me and I don't even know if I am doing anything correctly. Any help would be nice
A/D converter to LED matrix (Potentiometer)
So, the A/D goes from 0-255 but I want to have 0-7 from that, I need to left justify the value?
Nothing works for me and I don't even know if I am doing anything correctly. Any help would be nice
Code (Text):
- MAIN CLRF TRISD
- CLRF PORTD
- CLRF TRISA,RA1
- CLRF TRISA,RA1
- MOVLW...