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

ICD U64 data monitoring

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
tripper269



Joined: 06 May 2013
Posts: 33
Location: Toronto

View user's profile Send private message

ICD U64 data monitoring
PostPosted: Fri Feb 23, 2018 3:36 pm     Reply with quote

Hello Everyone,

Has anyone used data streaming with ICD U64, as explained in the below link
http://www.ccsinfo.com/content.php?page=stream_icd_offer

I tried but couldn't make it.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Feb 23, 2018 5:12 pm     Reply with quote

Quote:
I tried but couldn't make it.

I studied this by compiling the following test program and looking at
the .LST file. I didn't test it with an ICD64 in actual operation.
Code:

#include <18F46K22.h>
#fuses INTRC_IO, NOWDT, BROWNOUT, PUT, NOPBADEN
#use delay(clock=4M)
#use rs232(ICD)

//======================================
void main()
{   

printf("Start \n\r");

while(TRUE);
}

Conclusions:

1. It uses a software UART (bit-banged).

2. It transmits at 38400 baud.

3. It defaults to transmitting on Pin B7 and receiving on Pin B6.

4. You can change the transmit pin to Pin C6 by doing this:
Code:
#use rs232(ICD, xmit=PIN_C6)


5. You can change the default receive pin to C7 by doing this:
Code:
#use rs232(ICD, xmit=PIN_C6, rcv=PIN_C7)


6. Adding the #use rs232(ICD) line causes the compiler to insert a 4.5
second delay at the start of main(). The program won't do anything until
that delay has passed. I verified this delay time with the MPLAB v8.92
simulator's stopwatch feature.
allenhuffman



Joined: 17 Jun 2019
Posts: 552
Location: Des Moines, Iowa, USA

View user's profile Send private message Visit poster's website

Re: ICD U64 data monitoring
PostPosted: Fri Jul 05, 2019 10:45 am     Reply with quote

tripper269 wrote:
Hello Everyone,

Has anyone used data streaming with ICD U64, as explained in the below link
http://www.ccsinfo.com/content.php?page=stream_icd_offer

I tried but couldn't make it.


Did you ever figure it out?
_________________
Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 05, 2019 11:39 am     Reply with quote

CCS Data Streaming Video Tutorial:
https://www.youtube.com/watch?v=EnSazS39MeA
allenhuffman



Joined: 17 Jun 2019
Posts: 552
Location: Des Moines, Iowa, USA

View user's profile Send private message Visit poster's website

PostPosted: Fri Jul 05, 2019 12:21 pm     Reply with quote

PCM programmer wrote:
CCS Data Streaming Video Tutorial:
https://www.youtube.com/watch?v=EnSazS39MeA


Fantastic! That helped.

Running it using "Build & Run" did pop up the terminal, which helps.

I have yet to get any output when in Debug mode, though.

At least now I know it works. Thank you so much.
_________________
Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
jeremiah



Joined: 20 Jul 2010
Posts: 1351

View user's profile Send private message

PostPosted: Fri Jul 05, 2019 7:43 pm     Reply with quote

allenhuffman wrote:
PCM programmer wrote:
CCS Data Streaming Video Tutorial:
https://www.youtube.com/watch?v=EnSazS39MeA


Fantastic! That helped.

Running it using "Build & Run" did pop up the terminal, which helps.

I have yet to get any output when in Debug mode, though.

At least now I know it works. Thank you so much.


it won't work in debug mode. It uses the same pins that debug mode does.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group