Mama Sumae
New Member
Hello all !!! been a guest for quite a while now but have def join today since like any other microcontroller noob a time comes when u decide to bug the superior minds with some basic random questions that they answered 5 times in the same day alone.
Do u mind if i go straight to business now? ok then made this basic circuit in proteus that believe it or not i designed (only to find thousands like this one online guess there isnt much to it anyway) and loaded some basic codes using MPLAB.
https://img258.imageshack.us/my.php?image=circuitbe0.png (circuit have a look and admire my noob skills)
All fine till here since i have some electronics background but then assembly came to place and i found myself lost... C++ is ok to me but assembly is way beyond my knowledge. So I am capable of loading some random numbers to the 7 segment display by manually creating the output example:
To make 3 I use:
myPortB equ 0x06
org 0x000
start movlw 0x00
tris myPortB
movlw b'10011110'
movwf myPortB
circle goto circle ; done
end
What I want to do is a circuit that outputs the input number in the seven segment display, so if switch 1 is pressed a 1 should appear on the display and if switch 4 is pressed a 4 appears. Pretty simple I would reckon but I seem to be lost in the endless internet resources and every single site seems to use different statements in the code making it impossible for me to understand and use them to my own benefit.
Guess it should be something pretty boring to u guys but also something pretty easy and fast to do so can a kind soul provide me with some enlightenment with this.
ohh and between this i am using the PIC16F84A since i have one somewhere arround here.
Do u mind if i go straight to business now? ok then made this basic circuit in proteus that believe it or not i designed (only to find thousands like this one online guess there isnt much to it anyway) and loaded some basic codes using MPLAB.
https://img258.imageshack.us/my.php?image=circuitbe0.png (circuit have a look and admire my noob skills)
All fine till here since i have some electronics background but then assembly came to place and i found myself lost... C++ is ok to me but assembly is way beyond my knowledge. So I am capable of loading some random numbers to the 7 segment display by manually creating the output example:
To make 3 I use:
myPortB equ 0x06
org 0x000
start movlw 0x00
tris myPortB
movlw b'10011110'
movwf myPortB
circle goto circle ; done
end
What I want to do is a circuit that outputs the input number in the seven segment display, so if switch 1 is pressed a 1 should appear on the display and if switch 4 is pressed a 4 appears. Pretty simple I would reckon but I seem to be lost in the endless internet resources and every single site seems to use different statements in the code making it impossible for me to understand and use them to my own benefit.
Guess it should be something pretty boring to u guys but also something pretty easy and fast to do so can a kind soul provide me with some enlightenment with this.
ohh and between this i am using the PIC16F84A since i have one somewhere arround here.