You are on page 1of 10

AUTO POTATOCHIPS MEKING SYSTEM

Define LCD_LINES = 2
Define LCD_CHARS = 16
Define LCD_BITS = 4
Define LCD_DREG = PORTB
Define LCD_DBIT = 4
Define LCD_RSREG = PORTB
Define LCD_RSBIT = 2
Define LCD_EREG = PORTB
Define LCD_EBIT = 3

TRISC = %11111111
TRISD = 0

PORTD = 1

Lcdinit LcdCurUnderline
Lcdcmdout LcdClear

loop:

'Lcdcmdout LcdLine1Clear
'Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout " MEKING SYSTEM "

WaitMs 5000

Lcdcmdout LcdLine1Clear
Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout "INSURT POTATO "
Lcdcmdout LcdLine2Home
Lcdout " PROPERLY = OK "
WaitMs 2500

Lcdcmdout LcdLine1Clear
Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout " DONT INSERT "
Lcdcmdout LcdLine2Home
Lcdout " FINGER = OK "

WaitMs 2500

Lcdcmdout LcdLine1Home
Lcdout " MOTOR START "
Lcdcmdout LcdLine2Home
Lcdout "PLZ WAIT = OK "

WaitMs 2500

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout " MEKING START "

PORTD.7 = 1
WaitMs 5000

WaitMs 2500

WaitMs 2500

WaitMs 5000
WaitMs 5000

WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000

PORTD.7 = 0

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout "MEKING COMPLETE "
WaitMs 4000

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout "PLZ PUSH TO ON "
WaitMs 4000
End
Goto loop

Define LCD_LINES = 2
Define LCD_CHARS = 16
Define LCD_BITS = 4
Define LCD_DREG = PORTB
Define LCD_DBIT = 4
Define LCD_RSREG = PORTB
Define LCD_RSBIT = 2
Define LCD_EREG = PORTB
Define LCD_EBIT = 3

TRISC = %11111111
TRISD = 0

PORTD = 1

Lcdinit LcdCurUnderline
Lcdcmdout LcdClear

loop:

'Lcdcmdout LcdLine1Clear
'Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout " MEKING SYSTEM "
WaitMs 5000

Lcdcmdout LcdLine1Clear
Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout "INSURT POTATO "
Lcdcmdout LcdLine2Home
Lcdout " PROPERLY = OK "
WaitMs 2500

Lcdcmdout LcdLine1Clear
Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout " DONT INSERT "
Lcdcmdout LcdLine2Home
Lcdout " FINGER = OK "

WaitMs 2500

Lcdcmdout LcdLine1Home
Lcdout " MOTOR START "
Lcdcmdout LcdLine2Home
Lcdout "PLZ WAIT = OK "

WaitMs 2500

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout " MEKING START "

PORTD.7 = 1
WaitMs 5000

WaitMs 2500

WaitMs 2500

WaitMs 5000
WaitMs 5000

WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000

PORTD.7 = 0

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout "MEKING COMPLETE "
WaitMs 4000

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout "PLZ PUSH TO ON "
WaitMs 4000
End
Goto loop

Define LCD_LINES = 2
Define LCD_CHARS = 16
Define LCD_BITS = 4
Define LCD_DREG = PORTB
Define LCD_DBIT = 4
Define LCD_RSREG = PORTB
Define LCD_RSBIT = 2
Define LCD_EREG = PORTB
Define LCD_EBIT = 3

TRISC = %11111111
TRISD = 0

PORTD = 1

Lcdinit LcdCurUnderline
Lcdcmdout LcdClear

loop:

'Lcdcmdout LcdLine1Clear
'Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout " MEKING SYSTEM "

WaitMs 5000

Lcdcmdout LcdLine1Clear
Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout "INSURT POTATO "
Lcdcmdout LcdLine2Home
Lcdout " PROPERLY = OK "
WaitMs 2500

Lcdcmdout LcdLine1Clear
Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout " DONT INSERT "
Lcdcmdout LcdLine2Home
Lcdout " FINGER = OK "

WaitMs 2500

Lcdcmdout LcdLine1Home
Lcdout " MOTOR START "
Lcdcmdout LcdLine2Home
Lcdout "PLZ WAIT = OK "

WaitMs 2500

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout " MEKING START "

PORTD.7 = 1
WaitMs 5000

WaitMs 2500

WaitMs 2500

WaitMs 5000
WaitMs 5000

WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000

PORTD.7 = 0

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout "MEKING COMPLETE "
WaitMs 4000

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout "PLZ PUSH TO ON "
WaitMs 4000
End
Goto loop

Define LCD_LINES = 2
Define LCD_CHARS = 16
Define LCD_BITS = 4
Define LCD_DREG = PORTB
Define LCD_DBIT = 4
Define LCD_RSREG = PORTB
Define LCD_RSBIT = 2
Define LCD_EREG = PORTB
Define LCD_EBIT = 3

TRISC = %11111111
TRISD = 0

PORTD = 1

Lcdinit LcdCurUnderline
Lcdcmdout LcdClear

loop:

'Lcdcmdout LcdLine1Clear
'Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout " MEKING SYSTEM "

WaitMs 5000

Lcdcmdout LcdLine1Clear
Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout "INSURT POTATO "
Lcdcmdout LcdLine2Home
Lcdout " PROPERLY = OK "
WaitMs 2500

Lcdcmdout LcdLine1Clear
Lcdcmdout LcdLine2Clear

Lcdcmdout LcdLine1Home
Lcdout " DONT INSERT "
Lcdcmdout LcdLine2Home
Lcdout " FINGER = OK "

WaitMs 2500

Lcdcmdout LcdLine1Home
Lcdout " MOTOR START "
Lcdcmdout LcdLine2Home
Lcdout "PLZ WAIT = OK "

WaitMs 2500

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout " MEKING START "

PORTD.7 = 1
WaitMs 5000

WaitMs 2500

WaitMs 2500

WaitMs 5000
WaitMs 5000

WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000
WaitMs 5000

PORTD.7 = 0

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout "MEKING COMPLETE "
WaitMs 4000

Lcdcmdout LcdLine1Home
Lcdout "AUTO POTATOCHIPS "
Lcdcmdout LcdLine2Home
Lcdout "PLZ PUSH TO ON "
WaitMs 4000
End
Goto loop

Related Interests