Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

Discussion Groups | Piclist | thanx for replies re: 12f675. help still needed!!!!

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

thanx for replies re: 12f675. help still needed!!!! - shaunundergrad - Aug 9 10:31:00 2003

hi guys,
yes you're all quite right i misunderstood conditional assembly
directives. now i know no wonder it would not work....full 14 hrs on
it aswell. i can't output the a/d result on the pins as 12f675 only
has 4 available outputs, as gpio,3 input only and gpio,0 as analog,
maybe i could bit check the 4 lsb's, then output to gpio? i'll give
it a go. one other question, i've connected a 1k pot to battery +ive
rail then to gpio,0 from gpio,0 to another 1k pot, then to -ive
battery rail, is this correct? or should i just go from the +rail to
a pot to the pin and the pic sinks it?

regards

shaun





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )


Re: thanx for replies re: 12f675. help still needed!!!! - rtstofer - Aug 9 11:44:00 2003



Connect 1 end of the pot to +i, the other end to - and the center tap
to the A/D pin

--- In , "shaunundergrad" <electromechy1@a...>
wrote:
> hi guys,
> yes you're all quite right i misunderstood conditional assembly
> directives. now i know no wonder it would not work....full 14 hrs
on
> it aswell. i can't output the a/d result on the pins as 12f675 only
> has 4 available outputs, as gpio,3 input only and gpio,0 as analog,
> maybe i could bit check the 4 lsb's, then output to gpio? i'll give
> it a go. one other question, i've connected a 1k pot to battery
+ive
> rail then to gpio,0 from gpio,0 to another 1k pot, then to -ive
> battery rail, is this correct? or should i just go from the +rail
to
> a pot to the pin and the pic sinks it?
>
> regards
>
> shaun




(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Re: thanx for replies re: 12f675. help still needed!!!! - Author Unknown - Aug 9 12:51:00 2003

hi guys,
many thanx for help, i've actually got it working, i was using pots correctly, but program was a mile out. now i can see register value on 4 leds, obviously msb's but its enough. what a thrill, n


Attachment (not stored)
Sixties Sunflowers .jpg
Type: image/jpeg



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )