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.