FLOWCODE v5.5.2.1 and RTCC of PIC18F87K22

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
surfeurdecuivre
Posts: 8
Joined: Wed Apr 24, 2013 2:55 pm

FLOWCODE v5.5.2.1 and RTCC of PIC18F87K22

Post by surfeurdecuivre »

Hi,
I'm using a C block to pass asm code
i want to start the RTTC (set RTCCMD from PMD1 register) from the PIC18F87K22

Code: Select all

asm
{
movlw 0x55
movwf EECON2
movlw 0xAA
movwf EECON2
}
but i obtain the error "error in built-in assembly" when compiling to hex
the two "movwf EECON2" cause the error ???!!!!!!!! why?

I'm teacher and using Flowcode v5.5.2.1 and "EasyPIC Pro 7"
(sorry for my english but i'm a french user)
Thanks in advance

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: FLOWCODE v5.5.2.1 and RTCC of PIC18F87K22

Post by Benj »

Hello,

Try instead using this.

Code: Select all

asm
{
movlw 0x55
movwf _eecon2
movlw 0xAA
movwf _eecon2
}
As far as I am aware all registers in BoostC are lowercase and assembler versions start with an underscore.

surfeurdecuivre
Posts: 8
Joined: Wed Apr 24, 2013 2:55 pm

Re: FLOWCODE v5.5.2.1 and RTCC of PIC18F87K22

Post by surfeurdecuivre »

Hi Benj & Thx

tried before your response
movwf _EECON2 -> error
movwf 0x00000F7F -> error

tried now
movwf _eecon2 -> OK

PROBLEM SOLVED :D
ASM: case sensitive, "_" required

Thx, have a nice day

Post Reply