Hello

Im ME student and I have to do project in EE department
I spend one week to learn PicBasic Pro but but until now I do not have that experience to WRITE my project

My project is about writing a program to control traffic light on cross road by using PicBasic Pro language

I have 4 traffic light to control 3 led on each that 12 led on total
[red,green,Orange]
also 3 situation that describe the number of car on the road

Normal : 10 cars/min
above Normal:15 cars/min
below Normal: 5 cars/min

so I need to add a sensor to detect the number of car on the road from the number of car I have to define
how much of time should be pause to allow smooth and avoid traffic jam.

---------------------

The idea here that we connected 3×4 (3: light on each traffic light represent the colors Red, Yellow, Green then 4: represent the number of the traffic lights on the cross street) lights to 2 ports of the PIC16f877 PORTB & PORTC …
Traffic light #1 SE took the following: PB0, PB1, PB2 (RED, YELLOW, GREEN)
traffic light #2 SW took the following: PB3, PB4, PB5 (RED, YELLOW, GREEN)
traffic light #3 SN took the following: PB6, PB7, PC0 (RED, YELLOW, GREEN)
traffic light #4 SS took the following: PC1, PC2, PC3 (RED, YELLOW, GREEN)

E east
W west ..

; Define the variable and constant
SS var byte
SW var byte
SN var byte
SE var byte
; Define the I/O of the microcontroller
LEDGS var PORTB.2, LEDYS var PORTB.1, LEDRS var PORTB.0
LEDGW var PORTB.5, LEDYW var PORTB.4, LEDRW var PORTB.3
LEDGN var PORTC.0, LEDYN var PORTB.7, LEDRN var PORTB.6
LEDGE var PORTC.3 LEDYE var PORTC.2, LEDRE var PORTC.1
SS var PORTA.0, SW var PORTA.1, SN var PORTA.2
SE var PORTA.3


I need ur help to write this program