Hi all,
I'm working with ADC in PIC16F877. The output is written on PortC in 8 bit.Could I display this output in 3 bit? For example
PortC = 11111111 -> PortE = 111
PortC = 01111011 -> PortE = 011
PortC = 00010001 -> PortE = 010
Could I do something like this? (I checked but not worked)
Code:
movlw B'01111011'
xorwf PortC,w
btfss status,z
movlw B'00000011'
movwf PortE
The problem here is that can I do xorwf with the PortC which is writen by output of ADC process)
Hi all,
I'm working with ADC in PIC16F877. The output is written on PortC in 8 bit.Could I display this output in 3 bit? For example
PortC = 11111111 -> PortE = 111
PortC = 01111011 -> PortE = 011
PortC = 00010001 -> PortE = 010
Could I do something like this? (I checked but not worked)
Code:
movlw B'01111011'
xorwf PortC,w
btfss status,z
movlw B'00000011'
movwf PortE
Hi Eric,
I would like to send the output from PIC to computer by parallel port
But in parallel port I have only 3 bit (3 pin ) to read this data.
That's why I have to change from 8bit to 3 bit
Hi Eric,
I would like to send the output from PIC to computer by parallel port
But in parallel port I have only 3 bit (3 pin ) to read this data.
That's why I have to change from 8bit to 3 bit
If you have only 3 bits then send it serial. Use the bits as Enable, Clock & Data. The enable will allow you to recover if a bit is somehow missed when windoze goes of on one of it's tea breaks.
If you have only 3 bits then send it serial. Use the bits as Enable, Clock & Data. The enable will allow you to recover if a bit is somehow missed when windoze goes of on one of it's tea breaks.
Hi Nigel Goodwin,
I have a serial port. But could you tell me which program should I use in computer for reading this analog signal? Can I use Labview?
Data is data, it's up to you what you do with it once it's in the PC - I've no idea what Labview is capable of, but Hyperterminal will read the data and store it in a file.
I'm not sure what I'm doing is correct or not. Each I/O pin of parallel port I connect to outside circuit by a wire. So I can use each pin separately (from D0 to D7)
By the way, I will read more about parallel port configuration.
Thanks Eric
I'm not sure what I'm doing is correct or not. Each I/O pin of parallel port I connect to outside circuit by a wire. So I can use each pin separately (from D0 to D7)
Data is data, it's up to you what you do with it once it's in the PC - I've no idea what Labview is capable of, but Hyperterminal will read the data and store it in a file.