mafrasm
Newbie level 4

for my project i collect some datas from ADC for a while,and later on i want to transfer those datas to pc through usb connection,
first i built ADC section separately and now i can sense and save required data(processed ADC values) in my pic.(using variables.):wink:
then i built usb transaction:-now i can communicate with pic through usb(in fact i was success in executing usb read/write example provided with mikroc.):wink:
next i need to combine these two and i want to use my pic in two modes:?:
1)temperature sensing mode
2)usb transaction mode
(i tried with switches:- in position 1,pic act as temperate sensing equipment and in switch position 2 it act as usb communicator. even though i could compile this in mikroc it shows stack underflow error in proteous:-()so please help me to over come this.
please help me with any idea to combine these two together and form a single hex file.
first i built ADC section separately and now i can sense and save required data(processed ADC values) in my pic.(using variables.):wink:
then i built usb transaction:-now i can communicate with pic through usb(in fact i was success in executing usb read/write example provided with mikroc.):wink:
next i need to combine these two and i want to use my pic in two modes:?:
1)temperature sensing mode
2)usb transaction mode
(i tried with switches:- in position 1,pic act as temperate sensing equipment and in switch position 2 it act as usb communicator. even though i could compile this in mikroc it shows stack underflow error in proteous:-()so please help me to over come this.
please help me with any idea to combine these two together and form a single hex file.