Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

A/D converter to LED matrix (Potentiometer)

$
0
0
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
Code (Text):
  1. MAIN    CLRF    TRISD
  2.     CLRF    PORTD
  3.     CLRF    TRISA,RA1
  4.     CLRF    TRISA,RA1
  5.  
  6.     MOVLW...
A/D converter to LED matrix (Potentiometer)

Viewing all articles
Browse latest Browse all 4923

Trending Articles