View Index by Level
RANDOM PAGE

SITE SEARCH

LOG
IN

SIGN UP

HELP

Picaxe Traffic Lights


This is the AQA version closing after June 2019. Visit the the version for Eduqas instead.

To gain access to revision questions, please sign up and log in.

A2

The LED safety resistors are wired onto the ENSFC Picaxe board.

PX Traffic.gif

; ===================================
;   TO LIGHT A LED, ZERO IS NEEDED
;   TIMING IS NOT REALISTIC
; ===================================
start:                  ; RAGxxGAR
    movw    0x7B        ; 01111011 = 0x7B
    movwr   portb
    call    wait1000ms  ; RAGxxGAR
    movw    0x55        ; ???????? = 0x?? Work it out!
    movwr   portb
    call    wait1000ms  ; RAGxxGAR
    movw    0xAA        ; ???????? = 0x?? Work it out!
    movwr   portb
    call    wait1000ms  ; RAGxxGAR
    movw    0x55        ; ???????? = 0x?? Work it out!
    movwr   portb
    call    wait1000ms
    jmp     start

Traffic Lights Module

PX Traffic LYT.jpg PX Traffic Dia.gif

 

 

 

reviseOmatic V3     Contacts, ©, Cookies, Data Protection and Disclaimers Hosted at linode.com, London