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 support@ccsinfo.com

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: 31
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: 20421

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.
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