week3

Microcontrollers

 

m After class, I connected my capacitor. Last week I didn't connect a 10 ¥ìF (micro-Farad) capacitor to my circuit. In a class Jeff showed us how the capacitor works. in the case of capacior, the grey colored direction is for gound. Jeff demonstrated how the variable resistor functions with photocell registor. And we experimented the function of potentiometer. and how to check and measure the voltage with voltage meter.

 

m This week we learned about BX-24. Coming bach home I downloaded the 'Basic X' program in my computer. I tried to find which port is right or wrong. The interface of Basic X looks easy, but I need to get accustomed to be aware of each button's fuction. At first time my tial of putting a code into my BX-24 chip was failed. I got the 'halting error process message'. So I had to work at school. And then I finally succeeded to compile and run. It's very interesting to imagine the process that code is put into a chip changed to a compiled message of binary data and the result of the data is coming out to the world physically. Next time I exercise the 'Do' and 'Loop' function. Here is my work with BX-24 and the bx24-code.

 

Option Explicit

Public Sub Main() m

mdo
mmif getPin(11)=1 then
mmmmcall putPin(13,0)
mmmmcall delay(0.5)
mmmmcall putPin(14,1)
mmmmcall delay(0.5)
mmmmcall putPin(15,0)
mmmmcall delay(0.5)
mmmmcall putPin(16,1)
mmmmcall delay(0.5)
mmelse
mmmm call putPin(13,1)
mmmmcall delay(0.5)
mmmmcall putPin(14,0)
mmmmcall delay(0.5)
mmmmcall putPin(15,1)
mmmmcall delay(0.5)
mmmmcall putPin(16,0)
mmmmcall delay(0.5)
mmmend if
mloop

End Sub


 

 

Journal Index