Discussion in "Project Help" started by    starshine    Sep 6, 2007.
Thu Sep 06 2007, 05:27 pm
#1
hihi everybody, we need to do same project as cenadius which is
The system has 2 modes of operation: manual and automatic.
-In manual mode, a user may control the speed of the fan (either off, low or high speed) via push buttons.
-In automatic mode, the microcontroller controls the speed of the fan depending on the ambient temperature:
Off :Temperature < 30ºC
Low speed: 30ºC Temperature < 40ºC
High speed: Temperature >40ºC
-Regardless of the mode of operation, the ambient temperature is always shown on a dual-digit seven-segment display modules

what my thread here is, i dunno how to transfer the data from ADC to 7-segment display, wish somebody can help me, thnx alot!!
Thu Sep 06 2007, 06:39 pm
#2
recently too many people with same problem
i give you the skeleton view of the code..

ADC part:
start conv
wait for conv to get over
send read signal
read from port
after reading you will have the value in A
and then call the 7-seg routine
to display the number in A
jump back to do the whole thing again..

hope you are now clear how to transfer the adc value to 7-seg!!??!
 starshine like this.
Thu Sep 06 2007, 07:49 pm
#3
hihi ajay~ reali thnx for ur reply. We understand about the theory of the transferation part, but after we try to firgure out by ourselves,we found that we less of pratical part example so we are not sure with the code or the software program that we have to write. Do you mind to help us with how to write the code? Thnx alot :-)
Thu Sep 06 2007, 08:37 pm
#4
ok.. but before that.. i want you to see the timing diagram of ADC0804 from the datasheet and see how the signals has to be asserted to make the ADC work..
and try to write something.. after that... show me.. and i will look into it.
 starshine like this.
Thu Sep 06 2007, 10:09 pm
#5
thanks for ur reply. but may i know wat is timing diagram of ADC0804? come together with component? becoz we dun have information of the ADC0804. the lecturer just provide us the component only.
Thu Sep 06 2007, 11:20 pm
#6
read datasheet.. to know more..
Timing diagram tells you how to read, how to write.. and tells you which signal will be asserted and at what time.. and the state of the signal (high or low). Ask your lecturer for more information
here is the timing diagram for ADC0804

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Robertgurse
Wed Apr 24 2024, 02:43 pm
Richardedils
Wed Apr 24 2024, 04:07 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm