Upload
winfred-hudson
View
215
Download
0
Embed Size (px)
Citation preview
Prototyping with PIC Mi-crocontroller
Third day: Communications2009/02/13
Youmin Kim ([email protected])
Digital Media Lab
Serial CommunicationUARTIrDAUSB
Bluetooth RS232 MAX232
MAX232
PIC
LED
OSC
Adaptor780512V5V
MAX232
.Socket-12V Adapter 가 꽂힌다 . .
7805-12v 전압을 5v로 떨어뜨린다 .
.OSC- 클럭을 발생시킨다 .
.PIC-마이크로 컨트롤러 .
.LED-Light Emis-siveDiode.
.MAX232-MAXIM 社의 232Chip
Serial Cable 을 통해PC 로 전송
CASE 1: IPTV Remote
Bluetooth module
PIC #1
PIC #2
CASE 2: PEER (ETRI Wear-able)
Database
ControllerOff-line data managing
Bluetooth Comm.
Viewer (Flash GUI)
Controller
Bluetooth Comm.
WBS uDevices
Viewer (Flash GUI)
Controller
Bluetooth Comm.
Viewer application
Controller
Bluetooth Comm.BT comm.
Apps’database
Ideation: Automatic,
but Digital Lamp
PIC LED
Power
Clock
CDS
MAX232 PC
A Port / ADC Port
oscillator
B Port
C Port
UART
좌측 상단부터 1 번 핀동그란 마크가 있음
Master Clear
Circuit schematic
PIC16F73
CLK
LED
VCC (5V)
VCC (5V)
1
8
9
10
28 (RB7)
20
10K re-sister
350Ωresister
19
CDS
VCC (5V)
2 (AN0)
10K re-sister
MAX232
(RX, RC7)18
(TX, RC6)17PC
RX
TX
Set_adc_channel() 함수로 지정된 ADC 포트의 값을 읽어서 리턴한다 .
ADC 로 설정된 포트 중 어느 곳에서 값을 읽어 올 것인지를 결정
In the PC application, received values (e.g. 100, 123, …)
if received_value < 128:the program shows “Light On!”
else:the program shows “Light Off!”
Prototyping on Universal PCB
&PC application (c#)
How to PC application in c#?
Question?
Assignment 3:Studio project suggestion