CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 9 matches
CCS Forum Index
Author Message
  Topic: stopping process in PIC18F4550
fly28

Replies: 17
Views: 32341

PostForum: General CCS C Discussion   Posted: Tue Feb 14, 2017 1:49 pm   Subject: stopping process in PIC18F4550
The idea seems to work if I put in each loop
"for ...."
that lasts more than few seconds, these 2 instructions:

if (usb_kbhit (1))
{
...
  Topic: stopping process in PIC18F4550
fly28

Replies: 17
Views: 32341

PostForum: General CCS C Discussion   Posted: Mon Feb 13, 2017 4:12 pm   Subject: stopping process in PIC18F4550
I can generate 16 functions, no PIC or dsPIC has so many timers. However, this is not the main aim of my project, it's one of many. My code is not blocking, it's working perfectly; only if I try to st ...
  Topic: stopping process in PIC18F4550
fly28

Replies: 17
Views: 32341

PostForum: General CCS C Discussion   Posted: Mon Feb 13, 2017 3:30 pm   Subject: stopping process in PIC18F4550
@ newguy
It is indeed a brutish style and somehow you understood a part of the problem, namely the data acquisition. But my program can also generate signals ( acts as functions generator or , anot ...
  Topic: stopping process in PIC18F4550
fly28

Replies: 17
Views: 32341

PostForum: General CCS C Discussion   Posted: Mon Feb 13, 2017 2:57 pm   Subject: stopping process in PIC18F4550
a bigger portion of the code:

while (TRUE) {
usb_task();
usb_debug_task();
if (usb_enumerated()) {
if (usb_k ...
  Topic: stopping process in PIC18F4550
fly28

Replies: 17
Views: 32341

PostForum: General CCS C Discussion   Posted: Mon Feb 13, 2017 2:44 pm   Subject: stopping process in PIC18F4550
@ Ttelmah Thank you for your responses

I do not need to jump somewhere else in the program (to "goto" Smile ). I need to "break" the program somehow. I was thinking about interrup ...
  Topic: stopping process in PIC18F4550
fly28

Replies: 17
Views: 32341

PostForum: General CCS C Discussion   Posted: Mon Feb 13, 2017 2:33 pm   Subject: stopping process in PIC18F4550
@ PCM programmer , thank you for your response.

So, I inserted two lines of code in the program:
if (usb_kbhit (1)) {
usb_get_packet (1 in_data, 64);

...
  Topic: stopping process in PIC18F4550
fly28

Replies: 17
Views: 32341

PostForum: General CCS C Discussion   Posted: Mon Feb 13, 2017 11:49 am   Subject: stopping process in PIC18F4550
The program uses the HID driver (I use Microchip's VID and have a sublicense for PID ). To send a command to the chip the program creates a package that contains a byte for command's code (let's say 1 ...
  Topic: stopping process in PIC18F4550
fly28

Replies: 17
Views: 32341

PostForum: General CCS C Discussion   Posted: Sun Feb 12, 2017 1:37 am   Subject: stopping process in PIC18F4550
My apologies for the incorrect expression. The program is blocked when it receives data via USB. If 18F4550 need to take 600 samples for 5 minutes then, this time, I can not stop sampling unless I dis ...
  Topic: stopping process in PIC18F4550
fly28

Replies: 17
Views: 32341

PostForum: General CCS C Discussion   Posted: Sat Feb 11, 2017 11:47 am   Subject: stopping process in PIC18F4550
I have a data acquisition project with 18F4550. Everything is going well, it's connected to the PC via USB.
The problem is that sometimes data acquisition process lasts several minutes and I want to ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group