Thanks for the compliments!! Well.. I'm writing the code in assembly language which is the basis for all programming languages.. Basically, you write it in notepad, wordpad or your favorite editor..then you have a program that compiles the code in to hex language ...finally, you have a programmer attached to the computer... the programmer is designed to handle a large majority of the PIC chips out there... So, you plug your chip into the zif socket .. and download the program into the chip...
The possibilities are endless for the most part.. whatever I can concieve of can be done.. My intensions are to start doing some custom lighting and control cicuits etc.. These chips are what controls cars, remotes, stop lights, thermostats whatever..Im just using them to control lights. So, yes, I an do the Jupiter II lighting effects ...
Sample code that sets the registers in the chip to make certain pins inputs or outputs etc..Doesn't make much sense... but it does if you understand what the commands are actually telling the chip to do.. the movwf osscal command says to set the clock to 4 megahertz as an example.
PROGRAM CODE
main
call 0x3FF ; retrieve factory calibration value
bsf STATUS,RP0 ; set file register bank to 1
MOVWF OSCCAL
movlw 0x00
movwf TRISC
movlw 0X03
MOVWF OPTION_REG
bcf STATUS,RP0 ; set file register bank to 0
clrf TMR0
bsf INTCON,5
MOVLW 0X0F
The possibilities are endless for the most part.. whatever I can concieve of can be done.. My intensions are to start doing some custom lighting and control cicuits etc.. These chips are what controls cars, remotes, stop lights, thermostats whatever..Im just using them to control lights. So, yes, I an do the Jupiter II lighting effects ...
Sample code that sets the registers in the chip to make certain pins inputs or outputs etc..Doesn't make much sense... but it does if you understand what the commands are actually telling the chip to do.. the movwf osscal command says to set the clock to 4 megahertz as an example.
PROGRAM CODE
main
call 0x3FF ; retrieve factory calibration value
bsf STATUS,RP0 ; set file register bank to 1
MOVWF OSCCAL
movlw 0x00
movwf TRISC
movlw 0X03
MOVWF OPTION_REG
bcf STATUS,RP0 ; set file register bank to 0
clrf TMR0
bsf INTCON,5
MOVLW 0X0F
see my other builds at:
http://www.skunkwurkzmodels.com
http://www.skunkwurkzmodels.com

