Maker Pro
Maker Pro

PIC 12F675

R

Roy

Jan 1, 1970
0
Hi,

I am new at programming the PIC 12F675 & would like to see sample code on
programming the digital I/O pins and using the analogue inputs.
 
F

Form@C

Jan 1, 1970
0
Roy said:
PS I am programming in assembler code.
cya

Have a look at the documentation on Microchip's web site. There is the
spec sheet for the chip and another document on small microcontrollers.
These are both PDF files and contain plenty of examples.
 
F

Form@C

Jan 1, 1970
0
Roy said:
PS I am programming in assembler code.
cya

Ah... I see what you mean now. I directed you to the Microchip site but,
the documents I mentioned don't actually give line-by-line examples. They
do tell you how the ports work though, and how to use them.

A quick Google has failed to give any specific 12F675 examples on the web
at all! Plenty of people would like to sell you books though... :)

The ordinary I/O pins work like most of the small PICs. You should be able
to use examples from something like the 16F84 - bearing in mind that you
will have less pins! The 12F675 data sheet will help here.

Analogue input configuration may be more complicated. It depends very much
on what you are trying to do. Luckily the "Mid Range MCU Family Reference
Manual" is very informative, even though it is really for the 16x series.
http://www.microchip.com/1010/suppdoc/refernce/midrange/index.htm

The Microchip site mentions a "8-bit MCU Application Handbook" but I can't
find it anywhere! I think it may have been superseded by the above.
 
Top