Originally Posted by
LEDave
What program language do I start to learn Assembler code or C programming?
LEDave
1. Assembler . . . zero cost, much brain damage, much tedious typing.
2. C language, Can be High cost to about PBP cost, less typing, less brain damage, still much more of both than PBP.
3. PBP near English syntax, no silly bracketing { . . . } Moderate to low cost, Cheap upgrades, which include new manual, less brain damage. There are things you will have to learn regardless of your choice, like how to interpret a data sheet, which is probably the steeper part of the curve. PBP is available in the UK from Crownhill
Do not buy from an Unauthorized seller (I. E. Ebay ) as you will not be able to upgrade product.
Code:
DEFINE OSC 4
GPIO = 0 ' set all outputs low
TRISIO = %00000001 'Set GPIO.0 to input
cmcon = 7 'Disable analog comparators
ANSEL = 0 'disable analog select so ports work as digital i/o
main:
if GPIO.0 = 1 then GPIO.1 = 1 'turn it on
pause 500
gpio.1 = 0 'turn it off
goto main
end
Here go for a test drive:
http://melabs.com/pbpdemo.htm
Last edited by Archangel; - 16th February 2010 at 07:59.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks