Dear all,
I have my hardware derived by MCB2300 ,
What I did before migrate to uTasker , I interfaced external
ADC, EEPROM, and RTC all (bit banged protocols) with
GPIO lines (I have not used internals SPI controllers)!
ADC : p0.12 p0.23 p3.23 p3.25 (Bit banged SPI)
SDI SDO CS SCLK
RTC: p0.6, p0.7 , p0.8 (Bit banged SPI)
SCLK BIO EB
EEPROM: p0.27 p0.28 (Bit banged I2C)
SDA0 SCL0
Now , what we used with this (already developed) bit banged typed
method was software delays (for timing management) , I know this
was not the proper method, but now I want this to work with uTasker.
What I observed when I call old (working) routines for init and read write, it is
not working with uTasker (I am making call to this old drivers within new created task).
I checked PINSELECT and port directions. But i sense that I am missing something.
Should i need to do something with config.h/ app_hw_lpc23xx.h or any other file
for like disabling SPI/I2c from there Port setting from there to make my old drivers
working.
Also one more thing that I am worrying about is that , I was using nichelite OS ,
in they provided function TK_SLEEP(mili_sec) , we made heavy use of this function
(this function delivers control to other tasks and hold execution of current task for
specified time).
How can I compensate this task sleep in uTasker, as there is no task sleep in
uTasker.
-Thanks
Saurabh