I'm confused.
>>I found that Basic Pro compiler on the interenet.. It is allowing 900 bytes,
The PBP demo, available from http://www.melabs.com/pbpdemo.htm , is limitted to 31 instructions. What's the 900 bytes all about?
While looking up the demo address, I noticed a list of supported chips with the demo version, sorry to say it does not include the 12f675. Sorry to have (unintentionaly) misled you.
For simple digital control the output registers are mapped to the variable GPIO. Individual pins can be accessed with the syntax GPIO.n example:
High GPIO.0
Low GPIO.1
Toggle GPIO.2
Inputs can be read directly into a variable, suposing MyVar is a byte variable:
MyVar = GPIO.3
You can also work with the values directly
If GPIO.2 = 0 then
>do somthing<
end if
I reccomend you spend a few minutes in the archive at http://list.picbasic.com/cgi-bin/board-search.cgi a quick search of "12f675" returns ~60 different threads, many of which would be relevant to you.
-Denny
Bookmarks