Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4924

how to add delimiter to code MIKROC pic

$
0
0
hi
i have this code ( mikroc with pic18f2550 ) usb
how can i add delimiter to it
mean if data coming end with 255 /255 /255 then mikro will do the code

for example my code to control duty cycle (( M1pwm= )) any value after = it will change duty cycle
i need to add 255/255/255
it will be like that
M1pwm= 44 255 255 255
if i receive data without delimiter 255/ 255/ 255
mcu will not response
how to make it


Code (Text):
  1. char read_buffer[64]  absolute 0x500;
  2. char write_buffer[64] absolute...
how to add delimiter to code MIKROC pic

Viewing all articles
Browse latest Browse all 4924

Trending Articles