4 line to 16 line decoder using 8051
Discussion in "General help Guidance and Discussion" started by Arun Kumar V Jul 1, 2008.
Tue Jul 01 2008, 03:36 pm
Hello friends,
recently one of the friends from this forum asked me a favour to write a assembly code for his project, the project objective was to receive input on 4 port pins , decode and put the output on 2 ports for eg: if input on p2 is 0001 then p1.0 should become 1 so on. there are 16 states and only one output can be ON at a time.
i felt it was similar to 4line to 16 line decoder used in DTMF projects and thumbwheel projects and later came to know he intends to use this in his 4 bit RF Tx and Rx project.
here's the code with comments, i have used a optimised code approach and differed from the conventional CJNE approach ( this way the task is completed in less number of machine cycles and fast which is useful if the input changes rapidly)
: code deleted by Arun
hope its useful for some body
Arun
recently one of the friends from this forum asked me a favour to write a assembly code for his project, the project objective was to receive input on 4 port pins , decode and put the output on 2 ports for eg: if input on p2 is 0001 then p1.0 should become 1 so on. there are 16 states and only one output can be ON at a time.
i felt it was similar to 4line to 16 line decoder used in DTMF projects and thumbwheel projects and later came to know he intends to use this in his 4 bit RF Tx and Rx project.
here's the code with comments, i have used a optimised code approach and differed from the conventional CJNE approach ( this way the task is completed in less number of machine cycles and fast which is useful if the input changes rapidly)
: code deleted by Arun
hope its useful for some body
Arun
[ Edited Tue Jul 15 2008, 02:14 pm ]
Ûž TPS Ûž like this.
Tags 4 LINES TO 16 LINES DECODER USING 8051digital decoder using 8051
Powered by e107 Forum System