Converting BS2 code to BS2P24
Robert@HCC
Posts: 80
I am currently using a BS2 to run the components in our CanSat project. Components consist of :
DS1620, DS1302, Memsic 2125, MAX187 ADC, MPX4115 Pressure sensor , uM-FPU FP coprocessor, 25LC640 EEPROM, AeroComm 4790 RF modules, and a LassenIQ GPS module.
We are planning on moving up to a Bs2P-24 ,as I had to disable my EEPROM datalogging code when I added the coprocessor to fit the code in the bs2 eeprom
The coprocessor is actually overkill, I know - but we want to experience working with the widest range of components possible to add to the learning experience.
Additionally, I still have to add a bit of code for the RF and a small bit to control a servo for parachute release/guidance.
Also, we would like to take advantage of the speed boost of the bs2p, as well as the program slots.
My question is, in converting the code from the bs2 to the bs2p, what functions are affected by changing over to the bs2p from the bs2? For instance, I know about changing the scale for the memsic 2125 like so:
And changing my baud rate constant as well....
Any other potential "gotchas" I should be aware of besides this ?
Aloha, and thanks for any replies!
Robert
DS1620, DS1302, Memsic 2125, MAX187 ADC, MPX4115 Pressure sensor , uM-FPU FP coprocessor, 25LC640 EEPROM, AeroComm 4790 RF modules, and a LassenIQ GPS module.
We are planning on moving up to a Bs2P-24 ,as I had to disable my EEPROM datalogging code when I added the coprocessor to fit the code in the bs2 eeprom
The coprocessor is actually overkill, I know - but we want to experience working with the widest range of components possible to add to the learning experience.
Additionally, I still have to add a bit of code for the RF and a small bit to control a servo for parachute release/guidance.
Also, we would like to take advantage of the speed boost of the bs2p, as well as the program slots.
My question is, in converting the code from the bs2 to the bs2p, what functions are affected by changing over to the bs2p from the bs2? For instance, I know about changing the scale for the memsic 2125 like so:
#SELECT $STAMP #CASE BS2, BS2E, BS2PE Scale CON $200 ' 2.0 us per unit #CASE BS2SX, BS2P, BS2PX Scale CON $0CC ' 0.8 us per unit #ENDSELECT
And changing my baud rate constant as well....
Any other potential "gotchas" I should be aware of besides this ?
Aloha, and thanks for any replies!
Robert
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I really just needed to reasure myself it would be fairly easy to make the transfer, so I could reassure my mentor who controls the budget
The cool thing about Conditional Complilation is I really just have to add the Conditional stuff for the most part, and not rewrite my whole program - am sure thankful for that!
sound advice that:
And of course this, which is what I should have thought of myself
Aloha,
Robert
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax