Hi
Your getting errors because lines of assembly code your adding is in the wrong format.
For example you have got
Whereas is should be
asm
{
movlw 08h //Place 1000 into W
movwf _trisio //Move 1000 onto TRISA - set GP3 to i/p others to o/p
}
You can use:
But you will need precede with
on every line.
Normally with assembly and other compilers you will need to change to bank1 before writing to registers like _trisio
However with BoostC compiler, it's automatically done for you.
That's why I have left bank function off.
With assembly you need to move a literal value into working register (W).
Then move contents of W into Special Function Registors SFR.
You precede SFR with an underscore.
Not sure why you need to do this as with the last 12F675 I posted is allowing pic to work correctly.
If you don't think that's the case, then I can look into the issue.
Using Flowchart I have posted:
12F675GP3 port Test with GP1 WPU.fcf
If that works 100% of the time, which it does in my case, then I would be more inclined to look at the flowchart it'self
You need to bear in mind that Flowchart simulation is so much slower than hardware.
Therefore you may not always get the expected results.
Start simple to test functions first, then build up from that.
Martin