khatus
Member level 3
how i can implement output_b(SINE_WAVE) in mikroc
I have found a code written in CCS C.My question is how i can implement it in mikroc
Code:
int i
CONST unsigned int SINE_WAVE[30] = {
0b00010000, 0b10010000, 0b01010000, 0b11010000, 0b00110000, 0b10110000,
0b01110000, 0b11110000, 0b01110000, 0b10110000, 0b00110000, 0b11010000,
0b01010000, 0b10010000, 0b00010000, 0b11100000, 0b01100000, 0b10100000,
0b00100000, 0b11000000, 0b01000000, 0b10000000, 0b00000000, 0b10000000,
0b01000000, 0b11000000, 0b00100000, 0b10100000, 0b01100000, 0b11100000};
main()
{
for(i=0;i<30;i++)
{
output_b(SINE_WAVE[i]);
}
}
Here how i can implement output_b(SINE_WAVE); function in mikroc