SilverleafLycan1
TMF Poster
- Joined
- Aug 2, 2005
- Messages
- 123
- Points
- 0
This is most definitely the best semester for me so far. It's getting towards the end of my first four years (2 semester excluding this one), and my computer science courses really kicked into high gear. For the most part all of my classes bore the hell out of me.
However...
CSIT 411 kicks ass. All we're doing is playing with microcontrollers, the worlds smallest computers. I really think I just found my career. It's so much fun playing with'em and all we've done so far is make an LED blink and I finished my assignment for next week (Chasing light LED's with 6 LED's (bonus if you make it bounce)).
I post for two reasons though, one I wanted to say that this rocks. Two, even after taking a semester of assembly language working with microcontrollers is very different. The assembly language I learned was based on the pentium system, so not extremely different mostly just different codes and fewer instructions. I'm wondering if anybody on here happened to have worked with microcontrollers before, cause I can only imagine my code is too long to manage this task.
The DELAY is simple enough, it runs through 2 counters working out to about .2 seconds of a delay before the LED changes. I hard coded the bounce, but my professor talked about setting up a state machine. In C I could most likely get this working, but I'm mostly lost in assembly.
CHASE
movlw b'11011111'
movwf PORTC
call DELAY
movlw b'11101111'
movwf PORTC
call DELAY
movlw b'11110111'
movwf PORTC
call DELAY
movlw b'11111011'
movwf PORTC
call DELAY
movlw b'11111101'
movwf PORTC
call DELAY
movlw b'11111110'
movwf PORTC
call DELAY
movlw b'11111101'
movwf PORTC
call DELAY
movlw b'11111011'
movwf PORTC
call DELAY
movlw b'11110111'
movwf PORTC
call DELAY
movlw b'11101111'
movwf PORTC
call DELAY
return
This is my current code to set up the chase. If anyone has any suggestions to shorten it up let me know. And if anyone has any of their own questions about coding or pretty much anything computer related I can most likely help out somewhat (I've coded in HTML, PHP, JAVA, C, C++, Assembly, Visual Basic, Python...think that's it)
In any case I'm psyched about this class...gonna work on making a UFO now.
However...
CSIT 411 kicks ass. All we're doing is playing with microcontrollers, the worlds smallest computers. I really think I just found my career. It's so much fun playing with'em and all we've done so far is make an LED blink and I finished my assignment for next week (Chasing light LED's with 6 LED's (bonus if you make it bounce)).
I post for two reasons though, one I wanted to say that this rocks. Two, even after taking a semester of assembly language working with microcontrollers is very different. The assembly language I learned was based on the pentium system, so not extremely different mostly just different codes and fewer instructions. I'm wondering if anybody on here happened to have worked with microcontrollers before, cause I can only imagine my code is too long to manage this task.
The DELAY is simple enough, it runs through 2 counters working out to about .2 seconds of a delay before the LED changes. I hard coded the bounce, but my professor talked about setting up a state machine. In C I could most likely get this working, but I'm mostly lost in assembly.
CHASE
movlw b'11011111'
movwf PORTC
call DELAY
movlw b'11101111'
movwf PORTC
call DELAY
movlw b'11110111'
movwf PORTC
call DELAY
movlw b'11111011'
movwf PORTC
call DELAY
movlw b'11111101'
movwf PORTC
call DELAY
movlw b'11111110'
movwf PORTC
call DELAY
movlw b'11111101'
movwf PORTC
call DELAY
movlw b'11111011'
movwf PORTC
call DELAY
movlw b'11110111'
movwf PORTC
call DELAY
movlw b'11101111'
movwf PORTC
call DELAY
return
This is my current code to set up the chase. If anyone has any suggestions to shorten it up let me know. And if anyone has any of their own questions about coding or pretty much anything computer related I can most likely help out somewhat (I've coded in HTML, PHP, JAVA, C, C++, Assembly, Visual Basic, Python...think that's it)
In any case I'm psyched about this class...gonna work on making a UFO now.