Guys am totally new to the assy level programming. Currently am doing a project which requires me to design a microcode for a temperature controller based on 16F88 .There are two heaters H1 and H2 , its assumed that the system cools under natural convection . The actual temp T is regulary measured and converted to an 8bit number and stored in the PIC at 0x20 (microcode for adc is already given) four preset temperatures T1 , T2 , T3 , T4 are stored as 8-bit binary numbers at addresses 0x21 , 0x22 , 0x23 , 0x24 . The overall objective of the system is to keep the actual temp in the range T1 to T2 . the presets are such that T4<T3<T2<T1 . H1 is controlled by Port B , Bit 0 and H2 by Port B , bit1 .
The control algorith is given Below If
T <T2 H1 is switched on . H1 is switched off if T is less than or equal to T1 . H2 switched on if T<T4 . H2 switched off if T less than or equal to T3
The microcode i've written in attached . but am getting a lot of the errors below . Please guide me with this as am totally puzzled![Confused :confused: :confused:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
![Confused :confused: :confused:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 22 : Symbol not previously defined (porta)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 23 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 25 : Symbol not previously defined (Trisb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 26 : Symbol not previously defined (w)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 27 : Symbol not previously defined (Trisb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 28 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 46 : Symbol not previously defined (c)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 48 : Symbol not previously defined (CheckT1)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 51 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 52 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 61 : Symbol not previously defined (w,1)
Error[128] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 61 : Missing argument(s)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 63 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 71 : Symbol not previously defined (z)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 73 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 81 : Symbol not previously defined (c)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 82 : Symbol not previously defined (Less)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 82 : Symbol not previously defined (Than)
Error[112] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 82 : Missing operator
The control algorith is given Below If
T <T2 H1 is switched on . H1 is switched off if T is less than or equal to T1 . H2 switched on if T<T4 . H2 switched off if T less than or equal to T3
The microcode i've written in attached . but am getting a lot of the errors below . Please guide me with this as am totally puzzled
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 22 : Symbol not previously defined (porta)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 23 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 25 : Symbol not previously defined (Trisb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 26 : Symbol not previously defined (w)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 27 : Symbol not previously defined (Trisb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 28 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 46 : Symbol not previously defined (c)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 48 : Symbol not previously defined (CheckT1)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 51 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 52 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 61 : Symbol not previously defined (w,1)
Error[128] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 61 : Missing argument(s)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 63 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 71 : Symbol not previously defined (z)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 73 : Symbol not previously defined (portb)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 81 : Symbol not previously defined (c)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 82 : Symbol not previously defined (Less)
Error[113] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 82 : Symbol not previously defined (Than)
Error[112] C:\USERS\YUAN FEI\DESKTOP\ICT.ASM 82 : Missing operator