LED Display Driver for use with PIC?
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
LED Display Driver for use with PIC?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
CBarn24050
Guest





Posted: Fri Dec 10, 2004 6:42 pm    Post subject: Re: LED Display Driver for use with PIC? Reply with quote

Quote:
Subject: Re: LED Display Driver for use with PIC?
From: Noel Henson noel@noels-lab.com

As mentioned before, "the order of magnitude is correct." Nice work. But if
we were starting anew, how small could it be made?

Noel

I cant remeber the original spec now but lets say 4 digits with 4 buttons,
buttons driven via a diode from the multiplex output feeding back to a single
port pin. Digits and multiplex pattern alternated in the top 8 registers of a
PIC 16c870. Button information returned in the msb of the multiplex register
(only need the lower 4 bits for multiplexing). FSR reg dedicated to this thread
(could be shared with care by other threads). Code in ISR something like

movlw B'11111000'
iorwf fsr,f
movf 0,w
movwf segment_port
incf fsr,f
movf 0,w
movwf multiplex_port
bcf 0,7
btfsc multiplex_port,7 ;(button input line)
bsf 0,7
incf fsr,f

Now I,ve written it I'll leave you to test and debug it.
mo
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB