Wednesday, 7 November 2012

40

5 November - 7 November 2012
presentation week. can feel butterfly in my stomach :|

1st Draft

Sunday, 4 November 2012

39

29 October - 4 November 2012
as we planned earlier , we bring the project to see our supervisor. after several testing, the problem came from the battery holder which the wire had tear-off from the casing. then we change to another battery holder and everything become okay.

then sir asked to add switch for receiver unit which intercom that will put at the house.
First type battery holder

Change to this type of battery holder



Sunday, 28 October 2012

38

22 October - 28 October 2012
as mention before, we bring the project to BMI for testing stage. this is an anxious moment because if the image cannot appear while presentation our project will consider as a failure product.

at first there is no a single image appear on the monitor. we thought it is because of the weak battery but after we have change the battery we still got the same result.

we plan to meet our supervisor later.


Sunday, 21 October 2012

37

15 October - 21 October 2012
Finally!! can take a deep breath. Our project have been finalize. it can be called finish product.

have make some testing in the house and seem it is okay. will bring the project to BMI for testing stage.

Complete Project :D


Sunday, 14 October 2012

36

8 October - 14 October 2012
after several testing and error, the coding finally have been burn into the PIC. now will integrated into the project before finalize the product.

p/s:- start continue final report..few weeks before presentation

Sunday, 7 October 2012

35

1 October - 7 October 2012
after write the coding. testing and run the coding it is time to burn the coding into the PIC. we (me and hardware part) has choose PIC 16F877A.

p/s:- there are some error occurred during running the coding using the software. luckily have

Sunday, 30 September 2012

34

24 September - 30 September 2012
Assembly Programming using MPLAB development tools

(1) Setting Hardware (PIC) and configuration

Example:
;////////////////////////////////////////////////////////////////////////////////////////
;Set PIC = 16F877
;Set PIC configuration Setting
;////////////////////////////////////////////////////////////////////////////////////////


                                                list           p=pic16f877a                         ;MUST SET TO PIC MODEL IN USED
                                                include    p16f877a.inc
                                                __config  0x1E72                                    ;CONFIGURATION VALUE SETTING – refer to
                                                                                                                ;MPLAB menu, configure and configuration
                                                                                                                ;bits (value change on different setting)
                                                errorlevel               -302                          ;Suppress bank warning


(2) Variable Declaration

Example:
;////////////////////////////////////////////////////////////////////////////////////////
;Variable declaration -- any variable to be use must be declared here before it can be use in the main program
;////////////////////////////////////////////////////////////////////////////////////////
               

CBlock 0x20            ; Declaration started at this address
N                             ; Delay registers. Can be any name as long it’s not conflict with ; internal variable used in PIC ROM memory.
N1
                                                count1
                                                counta
                                                countb
                                                countc
                                                M0
                                               
                                                ENDC                      ;By using CBlock function, we must end it with ENDC


(3) Program Start – Initialization Process

Example:
;////////////////////////////////////////////////////////////////////////////////////////
;Set IO
;Initialize LCD
;Display start up message to LCD for intro
;Set default variable value
;////////////////////////////////////////////////////////////////////////////////////////
start                                        call initports                           ; call subroutine to initialize Input & Output setting
                                                                                                ;(refer sample 3a)
                                                call INITLCD                          ; call subroutine to initialize LCD (refer sample 3b)
                                                call clrscreen                          ; call subroutine to Clear LCD SCREEN
                                                call DisReady                          ; call subroutine  Display message to LCD during
                                                                                                ;hardware boot up.
                                                call visualdelay                       ;Delay routine use to hold display on LCD
                                                call SECOND_1                       ;2s delay before proceed to the next instruction
                                                call SECOND_1
                                                movlw d'20'                            ;Set Default value inside variable (depend on project
                                                                                                ;function)
                                                movwf TSPD1
                                                movlw d'100'
                                                movwf TSPD2
                                                bcf PORTD,2                           ;Turn Off Motor
                                                bcf PORTD,3
                                                bcf PORTC,4