Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] ISIS no display in LCD

Status
Not open for further replies.

freeidea

Member level 1
Member level 1
Joined
May 19, 2011
Messages
36
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
1,920
i use flow code to generate hex file,my program run ok in flowcode with displaying number,but in isis i can t get display,although all pin are connected correctly
 

What is the mcu you use?
is the mcu set up correctly in proteus?
What kind of display did you use?
Can you post an attachment of the circuit and the hex file.

Alex
 

link to flow and isis schematic is here:
**broken link removed**
also pic for isis and flow
**broken link removed**

foto flow
**broken link removed**

---------- Post added 31-05-11 at 00:08 ---------- Previous post was 30-05-11 at 23:10 ----------

code hex

:100000007F2AFF3FFF3FFF3FFF00030E83120313D2
:10001000BC000A0EBD00040EBE008A110A12B92AE5
:100020000F30D907D90CD90CD90CD90C1F30D905F0
:100030000000D90B182808000130DA07DA0CFF306D
:10004000DA0500000000DA0B2128080083120313F0
:10005000D8014B3058020318080064000A30D90058
:100060001020D80A2928DD01DE01E001E101DF01CD
:100070005F1A08000310E00DE10DD70DD80DDD0D5E
:10008000DE0D5A085E02031D472859085D02031C55
:1000900050285908DD025A08031CDE03DE026014F2
:1000A000DF0A3828D601D7015708803AD80055080A
:1000B000803A5802031D5E285408560203180800AF
:1000C0002620D60A0319D70A5428061086100611CE
:1000D000861186120612570E0F39D9000F30D90536
:1000E00059180614D918861459190615D9198615E0
:1000F000D808031D86160A30DA001C2006160A30BE
:10010000DA001C2006120F305705D9000A30DA0039
:100110001C20061086100611861186120612591828
:100120000614D918861459190615D9198615D80830
:10013000031D86160A30DA001C2006160A30DA0083
:100140001C2006120A30DA001C2008008312031358
:10015000D1018316051483120510831685148312AA
:1001600085108316051583120511831685158312D4
:1001700085110800013083120313D1008316051086
:1001800083120510831685108312851083160511BE
:1001900083120511831685118312851108008312BD
:1001A0000313D1080319080002305002D000501484
:1001B0000730D005831320308400500884070008DE
:1001C000D200521CE5280514E6280510D21CEA28A6
:1001D0008514EB288510521DEF280515F028051110
:1001E000D21DF42885150800851108008312031319
:1001F000D1080319080002305007D000501407300E
:10020000D005831320308400500884070008D200F2
:10021000521C0C2905140D290510D21C1129851416
:1002200012298510521D1629051517290511D21DF1
:100230001B298515080085110800831603138617EE
:1002400002308312D9001020861F29290130D200E4
:100250002A29D2015208D3000800D31F3C292D308F
:10026000D7001030D80065205208003CD700D309D1
:100270000318D30A5708D2005208D4005308D500F7
:1002800027305302031D462910305202031C7429E3
:10029000D31B7429DB015408D7005508D800D51F9B
:1002A0005729D709D809D70A0319D80ADB0A103009
:1002B000D9002730DA0033206008D6005B1C6229A1
:1002C000D609D60A5608303ED7001030D80065202F
:1002D0005608003C031874291030D4022730031C40
:1002E0002830D502D603682903305302031D7A292A
:1002F000E8305202031CAA29D31BAA29DC015408A6
:10030000D7005508D800D51F8B29D709D809D70A97
:100310000319D80ADC0AE830D9000330DA003320A8
:100320006008DB005C1C9629DB09DB0A5B08D60051
:100330005608303ED7001030D80065205608003CE3
:100340000318AA29E830D4020330031C0430D50274
:10035000D6039E295308803AD70080305702031DE8
:10036000B32964305202031CDF29DC015408D70092
:100370005508D800D51FC229D709D809D70A0319AB
:10038000D80ADC0A6430D900DA0133206008DB00C7
:100390005C1CCC29DB09DB0A5B08D6005608303E22
:1003A000D7001030D80065205608003C0318DF291C
:1003B0006430D402D508031CD503D603D4295308CE
:1003C000803AD70080305702031DE8290A305202D4
:1003D000031C142ADC015408D7005508D800D51F87
:1003E000F729D709D809D70A0319D80ADC0A0A302D
:1003F000D900DA0133206008DB005C1C012ADB092C
:10040000DB0A5B08D6005608303ED7001030D80013
:1004100065205608003C0318142A0A30D402D50877
:10042000031CD503D603092A5408303ED7001030E8
:10043000D80065200800D308031D212A8030D3008E
:10044000232AC030D30052085307D700D8016520B3
:100450000230D400D5015220080007308312031364
:100460009F00C0308316810080308316060486000A
:10047000803083120605D200C301C40180305202CD
:100480000319C30A1D215308C300C401C308031D77
:100490004C2AC40803194E2AA620342ABA20F62072
:1004A000C108C208C10A0319C20AD201D3011B2222
:1004B0004108D2004208D3002D2110304106031913
:1004C0004208031D342AC101C201BA20CF20C50849
:1004D000C608C50A0319C60AD2010130D3001B227F
:1004E0004508D2004608D3002D21103045060319D7
:1004F0004608031D652AC501C601A6204E2AD5302F
:1005000083120313A800C430A900BB30AA00DC305A
:10051000AB00AC01AD01AE01AF01B001B101B20160
:10052000B301B401B501B601B701CA01CB01BF01E6
:10053000C001CC01CD01CE01CF01B801B901BA0192
:10054000BB01C801C901C7010930A0000130A100E9
:100550000530A2000430A3000630A4000230A5003C
:100560000A30A6000830A700D001D1018A110A1272
:100570002D2A831203133E0E84003D0E8A003C0E8A
:100580008300FF0E7F0E0900FF3FFF3FFF3FFF3F4D
:08400000FF3FFF3FFF3FFF3FC0
:02400E003B3F36
:00000001FF

and code this is asm code generated by flow
;/////////////////////////////////////////////////////////////////////////////////
;// Code Generator: BoostC Compiler - SourceBoost Technologies - Home of C/C++/Basic compilers for PICmicro
;// Version : 6.95
;// License Type : Full License
;// Limitations : PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited, Non commercial use only
;/////////////////////////////////////////////////////////////////////////////////

include "P16F628A.inc"
; Heap block 0, size:95 (0x000000A0 - 0x000000FE)
__HEAP_BLOCK0_BANK EQU 0x00000001
__HEAP_BLOCK0_START_OFFSET EQU 0x00000020
__HEAP_BLOCK0_END_OFFSET EQU 0x0000007E
; Heap block 1, size:48 (0x00000120 - 0x0000014F)
__HEAP_BLOCK1_BANK EQU 0x00000002
__HEAP_BLOCK1_START_OFFSET EQU 0x00000020
__HEAP_BLOCK1_END_OFFSET EQU 0x0000004F
; Heap block 2, size:14 (0x00000062 - 0x0000006F)
__HEAP_BLOCK2_BANK EQU 0x00000000
__HEAP_BLOCK2_START_OFFSET EQU 0x00000062
__HEAP_BLOCK2_END_OFFSET EQU 0x0000006F
; Heap block 3, size:0 (0x00000000 - 0x00000000)
__HEAP_BLOCK3_BANK EQU 0x00000000
__HEAP_BLOCK3_START_OFFSET EQU 0x00000000
__HEAP_BLOCK3_END_OFFSET EQU 0x00000000
__div_16_1_00003_arg_a EQU 0x00000057 ; bytes:2
__div_16_1_00003_arg_b EQU 0x00000059 ; bytes:2
CompTempVarRet243 EQU 0x00000060 ; bytes:2
__div_16_1_00003_1_r EQU 0x0000005D ; bytes:2
__div_16_1_00003_1_i EQU 0x0000005F ; bytes:1
gbl_status EQU 0x00000003 ; bytes:1
gbl_16_LSR EQU 0x00000028 ; bytes:4
gbl_float_detect_tininess EQU 0x00000047 ; bytes:1
gbl_float_rounding_mode EQU 0x00000048 ; bytes:1
gbl_float_exception_flags EQU 0x00000049 ; bytes:1
gbl_17_gbl_aSig EQU 0x0000002C ; bytes:4
gbl_17_gbl_bSig EQU 0x00000030 ; bytes:4
gbl_17_gbl_zSig EQU 0x00000034 ; bytes:4
gbl_17_gbl_aExp EQU 0x0000004A ; bytes:1
gbl_17_gbl_bExp EQU 0x0000004B ; bytes:1
gbl_17_gbl_zExp EQU 0x0000003F ; bytes:2
gbl_17_gbl_aSign EQU 0x0000004C ; bytes:1
gbl_17_gbl_bSign EQU 0x0000004D ; bytes:1
gbl_17_gbl_zSign EQU 0x0000004E ; bytes:1
gbl_17_gbl_zSigZero EQU 0x0000004F ; bytes:1
gbl_17_gbl_ret EQU 0x00000038 ; bytes:4
gbl_indf EQU 0x00000000 ; bytes:1
gbl_tmr0 EQU 0x00000001 ; bytes:1
gbl_pcl EQU 0x00000002 ; bytes:1
gbl_fsr EQU 0x00000004 ; bytes:1
gbl_porta EQU 0x00000005 ; bytes:1
gbl_portb EQU 0x00000006 ; bytes:1
gbl_pclath EQU 0x0000000A ; bytes:1
gbl_intcon EQU 0x0000000B ; bytes:1
gbl_pir1 EQU 0x0000000C ; bytes:1
gbl_tmr1l EQU 0x0000000E ; bytes:1
gbl_tmr1h EQU 0x0000000F ; bytes:1
gbl_t1con EQU 0x00000010 ; bytes:1
gbl_tmr2 EQU 0x00000011 ; bytes:1
gbl_t2con EQU 0x00000012 ; bytes:1
gbl_ccpr1l EQU 0x00000015 ; bytes:1
gbl_ccpr1h EQU 0x00000016 ; bytes:1
gbl_ccp1con EQU 0x00000017 ; bytes:1
gbl_rcsta EQU 0x00000018 ; bytes:1
gbl_txreg EQU 0x00000019 ; bytes:1
gbl_rcreg EQU 0x0000001A ; bytes:1
gbl_cmcon EQU 0x0000001F ; bytes:1
gbl_option_reg EQU 0x00000081 ; bytes:1
gbl_trisa EQU 0x00000085 ; bytes:1
gbl_trisb EQU 0x00000086 ; bytes:1
gbl_pie1 EQU 0x0000008C ; bytes:1
gbl_pcon EQU 0x0000008E ; bytes:1
gbl_pr2 EQU 0x00000092 ; bytes:1
gbl_txsta EQU 0x00000098 ; bytes:1
gbl_spbrg EQU 0x00000099 ; bytes:1
gbl_eedata EQU 0x0000009A ; bytes:1
gbl_eeadr EQU 0x0000009B ; bytes:1
gbl_eecon1 EQU 0x0000009C ; bytes:1
gbl_eecon2 EQU 0x0000009D ; bytes:1
gbl_vrcon EQU 0x0000009F ; bytes:1
gbl_FCV_INCREMENTSTEP EQU 0x00000041 ; bytes:2
gbl_FCV_IN1 EQU 0x00000043 ; bytes:2
gbl_FCV_DECREMENTSTEP EQU 0x00000045 ; bytes:2
gbl_Stepper_263184_pattern EQU 0x00000020 ; bytes:8
gbl_Stepper_263184_phase EQU 0x00000050 ; bytes:1
gbl_Stepper_263184_enabled EQU 0x00000051 ; bytes:1
Wdt_msDela_00045_1_i EQU 0x00000058 ; bytes:1
Wdt_Delay__00047_arg_delay EQU 0x00000054 ; bytes:2
Wdt_Delay__00047_1_i EQU 0x00000056 ; bytes:2
CompTempVar2178 EQU 0x00000058 ; bytes:1
CompTempVarRet2205 EQU 0x00000053 ; bytes:1
FCD_SWITCH_00048_1_switchval EQU 0x00000052 ; bytes:1
FCD_LCDDis_0004B_arg_in EQU 0x00000057 ; bytes:1
FCD_LCDDis_0004B_arg_mask EQU 0x00000058 ; bytes:1
FCD_LCDDis_0004B_1_pt EQU 0x00000059 ; bytes:1
FCD_LCDDis_00050_arg_x EQU 0x00000052 ; bytes:1
FCD_LCDDis_00050_arg_y EQU 0x00000053 ; bytes:1
FCD_LCDDis_00051_arg_Number EQU 0x00000052 ; bytes:2
FCD_LCDDis_00051_1_tmp_int EQU 0x00000054 ; bytes:2
FCD_LCDDis_00051_1_tmp_byte EQU 0x00000056 ; bytes:1
CompTempVar2207 EQU 0x00000057 ; bytes:1
CompTempVar2210 EQU 0x0000005B ; bytes:1
CompTempVar2213 EQU 0x0000005B ; bytes:1
CompTempVar2214 EQU 0x0000005C ; bytes:1
CompTempVar2217 EQU 0x00000057 ; bytes:1
CompTempVar2218 EQU 0x0000005B ; bytes:1
CompTempVar2219 EQU 0x0000005C ; bytes:1
CompTempVar2222 EQU 0x00000057 ; bytes:1
CompTempVar2223 EQU 0x0000005B ; bytes:1
CompTempVar2224 EQU 0x0000005C ; bytes:1
FCD_Steppe_00057_1_pattern_now EQU 0x00000052 ; bytes:1
FCD_Steppe_00058_1_pattern_now EQU 0x00000052 ; bytes:1
CompTempVar2237 EQU 0x00000052 ; bytes:1
delay_us_00000_arg_del EQU 0x00000059 ; bytes:1
delay_10us_00000_arg_del EQU 0x0000005A ; bytes:1
Int1Context EQU 0x0000007F ; bytes:1
Int1BContext EQU 0x0000003C ; bytes:3
ORG 0x00000000
GOTO _startup
ORG 0x00000004
MOVWF Int1Context
SWAPF STATUS, W
BCF STATUS, RP0
BCF STATUS, RP1
MOVWF Int1BContext
SWAPF PCLATH, W
MOVWF Int1BContext+D'1'
SWAPF FSR, W
MOVWF Int1BContext+D'2'
BCF PCLATH,3
BCF PCLATH,4
GOTO interrupt
ORG 0x00000010
delay_us_00000
; { delay_us ; function begin
MOVLW 0x0F
ADDWF delay_us_00000_arg_del, F
RRF delay_us_00000_arg_del, F
RRF delay_us_00000_arg_del, F
RRF delay_us_00000_arg_del, F
RRF delay_us_00000_arg_del, F
MOVLW 0x1F
ANDWF delay_us_00000_arg_del, F
label1
NOP
DECFSZ delay_us_00000_arg_del, F
GOTO label1
RETURN
; } delay_us function end

ORG 0x0000001C
delay_10us_00000
; { delay_10us ; function begin
MOVLW 0x01
ADDWF delay_10us_00000_arg_del, F
RRF delay_10us_00000_arg_del, F
MOVLW 0xFF
ANDWF delay_10us_00000_arg_del, F
label2
NOP
NOP
DECFSZ delay_10us_00000_arg_del, F
GOTO label2
RETURN
; } delay_10us function end

ORG 0x00000026
Wdt_msDela_00045
; { Wdt_msDelay ; function begin
BCF STATUS, RP0
BCF STATUS, RP1
CLRF Wdt_msDela_00045_1_i
label3
MOVLW 0x4B
SUBWF Wdt_msDela_00045_1_i, W
BTFSC STATUS,C
RETURN
CLRWDT
MOVLW 0x0A
MOVWF delay_us_00000_arg_del
CALL delay_us_00000
INCF Wdt_msDela_00045_1_i, F
GOTO label3
; } Wdt_msDelay function end

ORG 0x00000033
__div_16_1_00003
; { __div_16_16 ; function begin
CLRF __div_16_1_00003_1_r
CLRF __div_16_1_00003_1_r+D'1'
CLRF CompTempVarRet243
CLRF CompTempVarRet243+D'1'
CLRF __div_16_1_00003_1_i
label4
BTFSC __div_16_1_00003_1_i,4
RETURN
BCF STATUS,C
RLF CompTempVarRet243, F
RLF CompTempVarRet243+D'1', F
RLF __div_16_1_00003_arg_a, F
RLF __div_16_1_00003_arg_a+D'1', F
RLF __div_16_1_00003_1_r, F
RLF __div_16_1_00003_1_r+D'1', F
MOVF __div_16_1_00003_arg_b+D'1', W
SUBWF __div_16_1_00003_1_r+D'1', W
BTFSS STATUS,Z
GOTO label5
MOVF __div_16_1_00003_arg_b, W
SUBWF __div_16_1_00003_1_r, W
label5
BTFSS STATUS,C
GOTO label6
MOVF __div_16_1_00003_arg_b, W
SUBWF __div_16_1_00003_1_r, F
MOVF __div_16_1_00003_arg_b+D'1', W
BTFSS STATUS,C
DECF __div_16_1_00003_1_r+D'1', F
SUBWF __div_16_1_00003_1_r+D'1', F
BSF CompTempVarRet243,0
label6
INCF __div_16_1_00003_1_i, F
GOTO label4
; } __div_16_16 function end

ORG 0x00000052
Wdt_Delay__00047
; { Wdt_Delay_Ms ; function begin
CLRF Wdt_Delay__00047_1_i
CLRF Wdt_Delay__00047_1_i+D'1'
label7
MOVF Wdt_Delay__00047_1_i+D'1', W
XORLW 0x80
MOVWF CompTempVar2178
MOVF Wdt_Delay__00047_arg_delay+D'1', W
XORLW 0x80
SUBWF CompTempVar2178, W
BTFSS STATUS,Z
GOTO label8
MOVF Wdt_Delay__00047_arg_delay, W
SUBWF Wdt_Delay__00047_1_i, W
label8
BTFSC STATUS,C
RETURN
CALL Wdt_msDela_00045
INCF Wdt_Delay__00047_1_i, F
BTFSC STATUS,Z
INCF Wdt_Delay__00047_1_i+D'1', F
GOTO label7
; } Wdt_Delay_Ms function end

ORG 0x00000065
FCD_LCDDis_0004B
; { FCD_LCDDisplay0_RawSend ; function begin
BCF gbl_portb,0
BCF gbl_portb,1
BCF gbl_portb,2
BCF gbl_portb,3
BCF gbl_portb,5
BCF gbl_portb,4
SWAPF FCD_LCDDis_0004B_arg_in, W
ANDLW 0x0F
MOVWF FCD_LCDDis_0004B_1_pt
MOVLW 0x0F
ANDWF FCD_LCDDis_0004B_1_pt, F
BTFSC FCD_LCDDis_0004B_1_pt,0
BSF gbl_portb,0
BTFSC FCD_LCDDis_0004B_1_pt,1
BSF gbl_portb,1
BTFSC FCD_LCDDis_0004B_1_pt,2
BSF gbl_portb,2
BTFSC FCD_LCDDis_0004B_1_pt,3
BSF gbl_portb,3
MOVF FCD_LCDDis_0004B_arg_mask, F
BTFSS STATUS,Z
BSF gbl_portb,5
MOVLW 0x0A
MOVWF delay_10us_00000_arg_del
CALL delay_10us_00000
BSF gbl_portb,4
MOVLW 0x0A
MOVWF delay_10us_00000_arg_del
CALL delay_10us_00000
BCF gbl_portb,4
MOVLW 0x0F
ANDWF FCD_LCDDis_0004B_arg_in, W
MOVWF FCD_LCDDis_0004B_1_pt
MOVLW 0x0A
MOVWF delay_10us_00000_arg_del
CALL delay_10us_00000
BCF gbl_portb,0
BCF gbl_portb,1
BCF gbl_portb,2
BCF gbl_portb,3
BCF gbl_portb,5
BCF gbl_portb,4
BTFSC FCD_LCDDis_0004B_1_pt,0
BSF gbl_portb,0
BTFSC FCD_LCDDis_0004B_1_pt,1
BSF gbl_portb,1
BTFSC FCD_LCDDis_0004B_1_pt,2
BSF gbl_portb,2
BTFSC FCD_LCDDis_0004B_1_pt,3
BSF gbl_portb,3
MOVF FCD_LCDDis_0004B_arg_mask, F
BTFSS STATUS,Z
BSF gbl_portb,5
MOVLW 0x0A
MOVWF delay_10us_00000_arg_del
CALL delay_10us_00000
BSF gbl_portb,4
MOVLW 0x0A
MOVWF delay_10us_00000_arg_del
CALL delay_10us_00000
BCF gbl_portb,4
MOVLW 0x0A
MOVWF delay_10us_00000_arg_del
CALL delay_10us_00000
RETURN
; } FCD_LCDDisplay0_RawSend function end

ORG 0x000000A6
FCD_Steppe_0005A
; { FCD_Stepper0_DisableMotor ; function begin
BCF STATUS, RP0
BCF STATUS, RP1
CLRF gbl_Stepper_263184_enabled
BSF STATUS, RP0
BSF gbl_trisa,0
BCF STATUS, RP0
BCF gbl_porta,0
BSF STATUS, RP0
BSF gbl_trisa,1
BCF STATUS, RP0
BCF gbl_porta,1
BSF STATUS, RP0
BSF gbl_trisa,2
BCF STATUS, RP0
BCF gbl_porta,2
BSF STATUS, RP0
BSF gbl_trisa,3
BCF STATUS, RP0
BCF gbl_porta,3
RETURN
; } FCD_Stepper0_DisableMotor function end

ORG 0x000000BA
FCD_Steppe_00059
; { FCD_Stepper0_EnableMotor ; function begin
MOVLW 0x01
BCF STATUS, RP0
BCF STATUS, RP1
MOVWF gbl_Stepper_263184_enabled
BSF STATUS, RP0
BCF gbl_trisa,0
BCF STATUS, RP0
BCF gbl_porta,0
BSF STATUS, RP0
BCF gbl_trisa,1
BCF STATUS, RP0
BCF gbl_porta,1
BSF STATUS, RP0
BCF gbl_trisa,2
BCF STATUS, RP0
BCF gbl_porta,2
BSF STATUS, RP0
BCF gbl_trisa,3
BCF STATUS, RP0
BCF gbl_porta,3
RETURN
; } FCD_Stepper0_EnableMotor function end

ORG 0x000000CF
FCD_Steppe_00058
; { FCD_Stepper0_DecrementStep ; function begin
BCF STATUS, RP0
BCF STATUS, RP1
MOVF gbl_Stepper_263184_enabled, F
BTFSC STATUS,Z
RETURN
MOVLW 0x02
SUBWF gbl_Stepper_263184_phase, W
MOVWF gbl_Stepper_263184_phase
BSF gbl_Stepper_263184_phase,0
MOVLW 0x07
ANDWF gbl_Stepper_263184_phase, F
BCF STATUS,IRP
MOVLW LOW(gbl_Stepper_263184_pattern+D'0')
MOVWF FSR
MOVF gbl_Stepper_263184_phase, W
ADDWF FSR, F
MOVF INDF, W
MOVWF FCD_Steppe_00058_1_pattern_now
BTFSS FCD_Steppe_00058_1_pattern_now,0
GOTO label9
BSF gbl_porta,0
GOTO label10
label9
BCF gbl_porta,0
label10
BTFSS FCD_Steppe_00058_1_pattern_now,1
GOTO label11
BSF gbl_porta,1
GOTO label12
label11
BCF gbl_porta,1
label12
BTFSS FCD_Steppe_00058_1_pattern_now,2
GOTO label13
BSF gbl_porta,2
GOTO label14
label13
BCF gbl_porta,2
label14
BTFSS FCD_Steppe_00058_1_pattern_now,3
GOTO label15
BSF gbl_porta,3
RETURN
label15
BCF gbl_porta,3
RETURN
; } FCD_Stepper0_DecrementStep function end

ORG 0x000000F6
FCD_Steppe_00057
; { FCD_Stepper0_IncrementStep ; function begin
BCF STATUS, RP0
BCF STATUS, RP1
MOVF gbl_Stepper_263184_enabled, F
BTFSC STATUS,Z
RETURN
MOVLW 0x02
ADDWF gbl_Stepper_263184_phase, W
MOVWF gbl_Stepper_263184_phase
BSF gbl_Stepper_263184_phase,0
MOVLW 0x07
ANDWF gbl_Stepper_263184_phase, F
BCF STATUS,IRP
MOVLW LOW(gbl_Stepper_263184_pattern+D'0')
MOVWF FSR
MOVF gbl_Stepper_263184_phase, W
ADDWF FSR, F
MOVF INDF, W
MOVWF FCD_Steppe_00057_1_pattern_now
BTFSS FCD_Steppe_00057_1_pattern_now,0
GOTO label16
BSF gbl_porta,0
GOTO label17
label16
BCF gbl_porta,0
label17
BTFSS FCD_Steppe_00057_1_pattern_now,1
GOTO label18
BSF gbl_porta,1
GOTO label19
label18
BCF gbl_porta,1
label19
BTFSS FCD_Steppe_00057_1_pattern_now,2
GOTO label20
BSF gbl_porta,2
GOTO label21
label20
BCF gbl_porta,2
label21
BTFSS FCD_Steppe_00057_1_pattern_now,3
GOTO label22
BSF gbl_porta,3
RETURN
label22
BCF gbl_porta,3
RETURN
; } FCD_Stepper0_IncrementStep function end

ORG 0x0000011D
FCD_SWITCH_00048
; { FCD_SWITCH0_ReadState ; function begin
BSF STATUS, RP0
BCF STATUS, RP1
BSF gbl_trisb,7
MOVLW 0x02
BCF STATUS, RP0
MOVWF delay_us_00000_arg_del
CALL delay_us_00000
BTFSS gbl_portb,7
GOTO label23
MOVLW 0x01
MOVWF FCD_SWITCH_00048_1_switchval
GOTO label24
label23
CLRF FCD_SWITCH_00048_1_switchval
label24
MOVF FCD_SWITCH_00048_1_switchval, W
MOVWF CompTempVarRet2205
RETURN
; } FCD_SWITCH0_ReadState function end

ORG 0x0000012D
FCD_LCDDis_00051
; { FCD_LCDDisplay0_PrintNumber ; function begin
BTFSS FCD_LCDDis_00051_arg_Number+D'1',7
GOTO label25
MOVLW 0x2D
MOVWF FCD_LCDDis_0004B_arg_in
MOVLW 0x10
MOVWF FCD_LCDDis_0004B_arg_mask
CALL FCD_LCDDis_0004B
MOVF FCD_LCDDis_00051_arg_Number, W
SUBLW 0x00
MOVWF CompTempVar2207
COMF FCD_LCDDis_00051_arg_Number+D'1', F
BTFSC STATUS,C
INCF FCD_LCDDis_00051_arg_Number+D'1', F
MOVF CompTempVar2207, W
MOVWF FCD_LCDDis_00051_arg_Number
label25
MOVF FCD_LCDDis_00051_arg_Number, W
MOVWF FCD_LCDDis_00051_1_tmp_int
MOVF FCD_LCDDis_00051_arg_Number+D'1', W
MOVWF FCD_LCDDis_00051_1_tmp_int+D'1'
MOVLW 0x27
SUBWF FCD_LCDDis_00051_arg_Number+D'1', W
BTFSS STATUS,Z
GOTO label26
MOVLW 0x10
SUBWF FCD_LCDDis_00051_arg_Number, W
label26
BTFSS STATUS,C
GOTO label30
BTFSC FCD_LCDDis_00051_arg_Number+D'1',7
GOTO label30
CLRF CompTempVar2210
MOVF FCD_LCDDis_00051_1_tmp_int, W
MOVWF __div_16_1_00003_arg_a
MOVF FCD_LCDDis_00051_1_tmp_int+D'1', W
MOVWF __div_16_1_00003_arg_a+D'1'
BTFSS FCD_LCDDis_00051_1_tmp_int+D'1',7
GOTO label27
COMF __div_16_1_00003_arg_a, F
COMF __div_16_1_00003_arg_a+D'1', F
INCF __div_16_1_00003_arg_a, F
BTFSC STATUS,Z
INCF __div_16_1_00003_arg_a+D'1', F
INCF CompTempVar2210, F
label27
MOVLW 0x10
MOVWF __div_16_1_00003_arg_b
MOVLW 0x27
MOVWF __div_16_1_00003_arg_b+D'1'
CALL __div_16_1_00003
MOVF CompTempVarRet243, W
MOVWF FCD_LCDDis_00051_1_tmp_byte
BTFSS CompTempVar2210,0
GOTO label28
COMF FCD_LCDDis_00051_1_tmp_byte, F
INCF FCD_LCDDis_00051_1_tmp_byte, F
label28
MOVF FCD_LCDDis_00051_1_tmp_byte, W
ADDLW 0x30
MOVWF FCD_LCDDis_0004B_arg_in
MOVLW 0x10
MOVWF FCD_LCDDis_0004B_arg_mask
CALL FCD_LCDDis_0004B
label29
MOVF FCD_LCDDis_00051_1_tmp_byte, W
SUBLW 0x00
BTFSC STATUS,C
GOTO label30
MOVLW 0x10
SUBWF FCD_LCDDis_00051_1_tmp_int, F
MOVLW 0x27
BTFSS STATUS,C
MOVLW 0x28
SUBWF FCD_LCDDis_00051_1_tmp_int+D'1', F
DECF FCD_LCDDis_00051_1_tmp_byte, F
GOTO label29
label30
MOVLW 0x03
SUBWF FCD_LCDDis_00051_arg_Number+D'1', W
BTFSS STATUS,Z
GOTO label31
MOVLW 0xE8
SUBWF FCD_LCDDis_00051_arg_Number, W
label31
BTFSS STATUS,C
GOTO label35
BTFSC FCD_LCDDis_00051_arg_Number+D'1',7
GOTO label35
CLRF CompTempVar2214
MOVF FCD_LCDDis_00051_1_tmp_int, W
MOVWF __div_16_1_00003_arg_a
MOVF FCD_LCDDis_00051_1_tmp_int+D'1', W
MOVWF __div_16_1_00003_arg_a+D'1'
BTFSS FCD_LCDDis_00051_1_tmp_int+D'1',7
GOTO label32
COMF __div_16_1_00003_arg_a, F
COMF __div_16_1_00003_arg_a+D'1', F
INCF __div_16_1_00003_arg_a, F
BTFSC STATUS,Z
INCF __div_16_1_00003_arg_a+D'1', F
INCF CompTempVar2214, F
label32
MOVLW 0xE8
MOVWF __div_16_1_00003_arg_b
MOVLW 0x03
MOVWF __div_16_1_00003_arg_b+D'1'
CALL __div_16_1_00003
MOVF CompTempVarRet243, W
MOVWF CompTempVar2213
BTFSS CompTempVar2214,0
GOTO label33
COMF CompTempVar2213, F
INCF CompTempVar2213, F
label33
MOVF CompTempVar2213, W
MOVWF FCD_LCDDis_00051_1_tmp_byte
MOVF FCD_LCDDis_00051_1_tmp_byte, W
ADDLW 0x30
MOVWF FCD_LCDDis_0004B_arg_in
MOVLW 0x10
MOVWF FCD_LCDDis_0004B_arg_mask
CALL FCD_LCDDis_0004B
label34
MOVF FCD_LCDDis_00051_1_tmp_byte, W
SUBLW 0x00
BTFSC STATUS,C
GOTO label35
MOVLW 0xE8
SUBWF FCD_LCDDis_00051_1_tmp_int, F
MOVLW 0x03
BTFSS STATUS,C
MOVLW 0x04
SUBWF FCD_LCDDis_00051_1_tmp_int+D'1', F
DECF FCD_LCDDis_00051_1_tmp_byte, F
GOTO label34
label35
MOVF FCD_LCDDis_00051_arg_Number+D'1', W
XORLW 0x80
MOVWF CompTempVar2217
MOVLW 0x80
SUBWF CompTempVar2217, W
BTFSS STATUS,Z
GOTO label36
MOVLW 0x64
SUBWF FCD_LCDDis_00051_arg_Number, W
label36
BTFSS STATUS,C
GOTO label40
CLRF CompTempVar2219
MOVF FCD_LCDDis_00051_1_tmp_int, W
MOVWF __div_16_1_00003_arg_a
MOVF FCD_LCDDis_00051_1_tmp_int+D'1', W
MOVWF __div_16_1_00003_arg_a+D'1'
BTFSS FCD_LCDDis_00051_1_tmp_int+D'1',7
GOTO label37
COMF __div_16_1_00003_arg_a, F
COMF __div_16_1_00003_arg_a+D'1', F
INCF __div_16_1_00003_arg_a, F
BTFSC STATUS,Z
INCF __div_16_1_00003_arg_a+D'1', F
INCF CompTempVar2219, F
label37
MOVLW 0x64
MOVWF __div_16_1_00003_arg_b
CLRF __div_16_1_00003_arg_b+D'1'
CALL __div_16_1_00003
MOVF CompTempVarRet243, W
MOVWF CompTempVar2218
BTFSS CompTempVar2219,0
GOTO label38
COMF CompTempVar2218, F
INCF CompTempVar2218, F
label38
MOVF CompTempVar2218, W
MOVWF FCD_LCDDis_00051_1_tmp_byte
MOVF FCD_LCDDis_00051_1_tmp_byte, W
ADDLW 0x30
MOVWF FCD_LCDDis_0004B_arg_in
MOVLW 0x10
MOVWF FCD_LCDDis_0004B_arg_mask
CALL FCD_LCDDis_0004B
label39
MOVF FCD_LCDDis_00051_1_tmp_byte, W
SUBLW 0x00
BTFSC STATUS,C
GOTO label40
MOVLW 0x64
SUBWF FCD_LCDDis_00051_1_tmp_int, F
MOVF FCD_LCDDis_00051_1_tmp_int+D'1', F
BTFSS STATUS,C
DECF FCD_LCDDis_00051_1_tmp_int+D'1', F
DECF FCD_LCDDis_00051_1_tmp_byte, F
GOTO label39
label40
MOVF FCD_LCDDis_00051_arg_Number+D'1', W
XORLW 0x80
MOVWF CompTempVar2222
MOVLW 0x80
SUBWF CompTempVar2222, W
BTFSS STATUS,Z
GOTO label41
MOVLW 0x0A
SUBWF FCD_LCDDis_00051_arg_Number, W
label41
BTFSS STATUS,C
GOTO label45
CLRF CompTempVar2224
MOVF FCD_LCDDis_00051_1_tmp_int, W
MOVWF __div_16_1_00003_arg_a
MOVF FCD_LCDDis_00051_1_tmp_int+D'1', W
MOVWF __div_16_1_00003_arg_a+D'1'
BTFSS FCD_LCDDis_00051_1_tmp_int+D'1',7
GOTO label42
COMF __div_16_1_00003_arg_a, F
COMF __div_16_1_00003_arg_a+D'1', F
INCF __div_16_1_00003_arg_a, F
BTFSC STATUS,Z
INCF __div_16_1_00003_arg_a+D'1', F
INCF CompTempVar2224, F
label42
MOVLW 0x0A
MOVWF __div_16_1_00003_arg_b
CLRF __div_16_1_00003_arg_b+D'1'
CALL __div_16_1_00003
MOVF CompTempVarRet243, W
MOVWF CompTempVar2223
BTFSS CompTempVar2224,0
GOTO label43
COMF CompTempVar2223, F
INCF CompTempVar2223, F
label43
MOVF CompTempVar2223, W
MOVWF FCD_LCDDis_00051_1_tmp_byte
MOVF FCD_LCDDis_00051_1_tmp_byte, W
ADDLW 0x30
MOVWF FCD_LCDDis_0004B_arg_in
MOVLW 0x10
MOVWF FCD_LCDDis_0004B_arg_mask
CALL FCD_LCDDis_0004B
label44
MOVF FCD_LCDDis_00051_1_tmp_byte, W
SUBLW 0x00
BTFSC STATUS,C
GOTO label45
MOVLW 0x0A
SUBWF FCD_LCDDis_00051_1_tmp_int, F
MOVF FCD_LCDDis_00051_1_tmp_int+D'1', F
BTFSS STATUS,C
DECF FCD_LCDDis_00051_1_tmp_int+D'1', F
DECF FCD_LCDDis_00051_1_tmp_byte, F
GOTO label44
label45
MOVF FCD_LCDDis_00051_1_tmp_int, W
ADDLW 0x30
MOVWF FCD_LCDDis_0004B_arg_in
MOVLW 0x10
MOVWF FCD_LCDDis_0004B_arg_mask
CALL FCD_LCDDis_0004B
RETURN
; } FCD_LCDDisplay0_PrintNumber function end

ORG 0x0000021B
FCD_LCDDis_00050
; { FCD_LCDDisplay0_Cursor ; function begin
MOVF FCD_LCDDis_00050_arg_y, F
BTFSS STATUS,Z
GOTO label46
MOVLW 0x80
MOVWF FCD_LCDDis_00050_arg_y
GOTO label47
label46
MOVLW 0xC0
MOVWF FCD_LCDDis_00050_arg_y
label47
MOVF FCD_LCDDis_00050_arg_x, W
ADDWF FCD_LCDDis_00050_arg_y, W
MOVWF FCD_LCDDis_0004B_arg_in
CLRF FCD_LCDDis_0004B_arg_mask
CALL FCD_LCDDis_0004B
MOVLW 0x02
MOVWF Wdt_Delay__00047_arg_delay
CLRF Wdt_Delay__00047_arg_delay+D'1'
CALL Wdt_Delay__00047
RETURN
; } FCD_LCDDisplay0_Cursor function end

ORG 0x0000022D
main
; { main ; function begin
MOVLW 0x07
BCF STATUS, RP0
BCF STATUS, RP1
MOVWF gbl_cmcon
MOVLW 0xC0
BSF STATUS, RP0
MOVWF gbl_option_reg
label48
MOVLW 0x80
BSF STATUS, RP0
IORWF gbl_trisb, W
MOVWF gbl_trisb
MOVLW 0x80
BCF STATUS, RP0
ANDWF gbl_portb, W
MOVWF CompTempVar2237
CLRF gbl_FCV_IN1
CLRF gbl_FCV_IN1+D'1'
MOVLW 0x80
SUBWF CompTempVar2237, W
BTFSC STATUS,Z
INCF gbl_FCV_IN1, F
CALL FCD_SWITCH_00048
MOVF CompTempVarRet2205, W
MOVWF gbl_FCV_IN1
CLRF gbl_FCV_IN1+D'1'
MOVF gbl_FCV_IN1, F
BTFSS STATUS,Z
GOTO label49
MOVF gbl_FCV_IN1+D'1', F
BTFSC STATUS,Z
GOTO label50
label49
CALL FCD_Steppe_0005A
GOTO label48
label50
CALL FCD_Steppe_00059
CALL FCD_Steppe_00057
MOVF gbl_FCV_INCREMENTSTEP, F
MOVF gbl_FCV_INCREMENTSTEP+D'1', F
INCF gbl_FCV_INCREMENTSTEP, F
BTFSC STATUS,Z
INCF gbl_FCV_INCREMENTSTEP+D'1', F
CLRF FCD_LCDDis_00050_arg_x
CLRF FCD_LCDDis_00050_arg_y
CALL FCD_LCDDis_00050
MOVF gbl_FCV_INCREMENTSTEP, W
MOVWF FCD_LCDDis_00051_arg_Number
MOVF gbl_FCV_INCREMENTSTEP+D'1', W
MOVWF FCD_LCDDis_00051_arg_Number+D'1'
CALL FCD_LCDDis_00051
MOVLW 0x10
XORWF gbl_FCV_INCREMENTSTEP, W
BTFSC STATUS,Z
MOVF gbl_FCV_INCREMENTSTEP+D'1', W
BTFSS STATUS,Z
GOTO label48
CLRF gbl_FCV_INCREMENTSTEP
CLRF gbl_FCV_INCREMENTSTEP+D'1'
label51
CALL FCD_Steppe_00059
CALL FCD_Steppe_00058
MOVF gbl_FCV_DECREMENTSTEP, F
MOVF gbl_FCV_DECREMENTSTEP+D'1', F
INCF gbl_FCV_DECREMENTSTEP, F
BTFSC STATUS,Z
INCF gbl_FCV_DECREMENTSTEP+D'1', F
CLRF FCD_LCDDis_00050_arg_x
MOVLW 0x01
MOVWF FCD_LCDDis_00050_arg_y
CALL FCD_LCDDis_00050
MOVF gbl_FCV_DECREMENTSTEP, W
MOVWF FCD_LCDDis_00051_arg_Number
MOVF gbl_FCV_DECREMENTSTEP+D'1', W
MOVWF FCD_LCDDis_00051_arg_Number+D'1'
CALL FCD_LCDDis_00051
MOVLW 0x10
XORWF gbl_FCV_DECREMENTSTEP, W
BTFSC STATUS,Z
MOVF gbl_FCV_DECREMENTSTEP+D'1', W
BTFSS STATUS,Z
GOTO label51
CLRF gbl_FCV_DECREMENTSTEP
CLRF gbl_FCV_DECREMENTSTEP+D'1'
CALL FCD_Steppe_0005A
GOTO label50
; } main function end

ORG 0x0000027F
_startup
MOVLW 0xD5
BCF STATUS, RP0
BCF STATUS, RP1
MOVWF gbl_16_LSR
MOVLW 0xC4
MOVWF gbl_16_LSR+D'1'
MOVLW 0xBB
MOVWF gbl_16_LSR+D'2'
MOVLW 0xDC
MOVWF gbl_16_LSR+D'3'
CLRF gbl_17_gbl_aSig
CLRF gbl_17_gbl_aSig+D'1'
CLRF gbl_17_gbl_aSig+D'2'
CLRF gbl_17_gbl_aSig+D'3'
CLRF gbl_17_gbl_bSig
CLRF gbl_17_gbl_bSig+D'1'
CLRF gbl_17_gbl_bSig+D'2'
CLRF gbl_17_gbl_bSig+D'3'
CLRF gbl_17_gbl_zSig
CLRF gbl_17_gbl_zSig+D'1'
CLRF gbl_17_gbl_zSig+D'2'
CLRF gbl_17_gbl_zSig+D'3'
CLRF gbl_17_gbl_aExp
CLRF gbl_17_gbl_bExp
CLRF gbl_17_gbl_zExp
CLRF gbl_17_gbl_zExp+D'1'
CLRF gbl_17_gbl_aSign
CLRF gbl_17_gbl_bSign
CLRF gbl_17_gbl_zSign
CLRF gbl_17_gbl_zSigZero
CLRF gbl_17_gbl_ret
CLRF gbl_17_gbl_ret+D'1'
CLRF gbl_17_gbl_ret+D'2'
CLRF gbl_17_gbl_ret+D'3'
CLRF gbl_float_rounding_mode
CLRF gbl_float_exception_flags
CLRF gbl_float_detect_tininess
MOVLW 0x09
MOVWF gbl_Stepper_263184_pattern
MOVLW 0x01
MOVWF gbl_Stepper_263184_pattern+D'1'
MOVLW 0x05
MOVWF gbl_Stepper_263184_pattern+D'2'
MOVLW 0x04
MOVWF gbl_Stepper_263184_pattern+D'3'
MOVLW 0x06
MOVWF gbl_Stepper_263184_pattern+D'4'
MOVLW 0x02
MOVWF gbl_Stepper_263184_pattern+D'5'
MOVLW 0x0A
MOVWF gbl_Stepper_263184_pattern+D'6'
MOVLW 0x08
MOVWF gbl_Stepper_263184_pattern+D'7'
CLRF gbl_Stepper_263184_phase
CLRF gbl_Stepper_263184_enabled
BCF PCLATH,3
BCF PCLATH,4
GOTO main
ORG 0x000002B9
interrupt
; { interrupt ; function begin
BCF STATUS, RP0
BCF STATUS, RP1
SWAPF Int1BContext+D'2', W
MOVWF FSR
SWAPF Int1BContext+D'1', W
MOVWF PCLATH
SWAPF Int1BContext, W
MOVWF STATUS
SWAPF Int1Context, F
SWAPF Int1Context, W
RETFIE
; } interrupt function end

ORG 0x00002007
DW 0x3F3B
END
 
Last edited:

I think you are using the wrong device because I see some error messages in proteus about the invalid eprom adress for the device and portB does nothing.
Actually I can see in your picture the flowcode says 16F228 and in proteus you have used 16F628.
You have to use the same device in both

Alex
 

no it s seem device ,16F628A,i have typed 16f228a as name but in flow it is 16f628a.
i note if i connect portA ,portB become disbabled, and so on,only one port can be activated.it worked fine,but after adding macro in flow ,it start to display bugs.
you have doubt in flowcode program capacity or speed of pic
 
Last edited:

portB of the mcu doesn't give any signal so there must be something wrong, It is not the LCD timing because there is no output at all from the mcu port.

Alex
 

that s it alex,i see lcd working fine in flow with active portB,but in ISIS this port is not actif

---------- Post added at 12:31 ---------- Previous post was at 12:26 ----------

note that if i create a simple program with flow using the some STEPPER AND LCD,but no more macros,it work fine.that why i have doubt in volume ofmy program in flowcode

---------- Post added at 13:10 ---------- Previous post was at 12:31 ----------

What the default adress eprom in isis
 
Last edited:

solved,if you see in flow code the init LCD imacro was deleted.think for all
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top