Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library...

Post on 16-Jan-2016

213 views 0 download

Transcript of Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library...

Software Design Narrative

Team 1Hang Xie

Utilization of integrated peripherals pwm, uart, i2c, atd

Computer vision library OpenCV or SimpleCV

Software Design Considerations

MicroController part:PWM doneUART transmitting doneUART receive part not doneATD not doneI2C not done

Intelligent partUART doneSimple CV not done

Atom Motherboard

Software development status

Register initializations requiredPWM UART I/O

OCxCON1 U1BRG TRISB OCxCON2 U1TXIPxOCxR U1STAOCxRS MODEPSS register

Software development status

Flow chart for micro ( using raspberry pi)

Flow chart for micro (Atom)

State machine, polling loop

Port names/addresses: Programming port: RP1, RP0,VSS,VDD,MCLR

PWM1: RP6 PWM2: RP7 PWM3: RP8 PWM4: RP9 PWM5: RP14 PWM6: RP29

UART_RX: RP11 UART_TX:RP12 I2C_SDA : RP10 I2C_SCL: RP17 I/O: RP3, RP4, RP30, RP16, RP23

Software Design Considerations

Shareware sources pySerial : Serial(port,9600), flushInput(), read(), write() Raspbian SimpleCV OpenCVMy own modules pwm_init( ) pwm_con( ) uart_init( ) uart_get( ) uart_put( ) atd_init( ) Init_all( )

Software Design Narrative

Hierarchical arrangement of the various code module

QUESTIONS