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 1736 matches
CCS Forum Index
Author Message
  Topic: PIC18F23k22 UART2 pins sharing with programmer
Mike Walne

Replies: 11
Views: 9991

PostForum: General CCS C Discussion   Posted: Thu Jan 18, 2024 6:11 am   Subject: PIC18F23k22 UART2 pins sharing with programmer

gee Mike that sounds a lot easier than when I added a PC 8bit quad UART to a PIC16F877...back when the 'big animals' roamed......
sigh...
sadly I still have 2-3 tubes of 4052, 4051 and 4053...coll ...
  Topic: PIC18F23k22 UART2 pins sharing with programmer
Mike Walne

Replies: 11
Views: 9991

PostForum: General CCS C Discussion   Posted: Sun Jan 14, 2024 7:37 am   Subject: PIC18F23k22 UART2 pins sharing with programmer
Back in the dinosaur days I drove 4 UARTs from a PIC with only 1 UART port.

I used a CD4052 as an expander for both transmit and receive at TTL level.

Needed 2 spare pins to select which UART to ...
  Topic: comparator wave
Mike Walne

Replies: 41
Views: 69349

PostForum: General CCS C Discussion   Posted: Sat Jan 14, 2023 4:22 pm   Subject: comparator wave
Can we measure frequency with timer0? Is there sample code.

CCS supplies code EX_FREQ.C which is not portable between PICs.
You may be able to modify it to suit your PIC.

This link may help you ...
  Topic: how to receive string from PC using RS232
Mike Walne

Replies: 2
Views: 10718

PostForum: General CCS C Discussion   Posted: Thu Jul 23, 2020 2:49 am   Subject: how to receive string from PC using RS232
Examples supplied by CCS shows you how to do it.

You've been around for eight years, you should not need to be asking.

Mike
  Topic: Reversing Direction in For() statement
Mike Walne

Replies: 22
Views: 44088

PostForum: General CCS C Discussion   Posted: Thu Jul 16, 2020 2:27 pm   Subject: Reversing Direction in For() statement
Try printing out the values of all variables which change as you go line by line through the code.

Should tell you where the error is!

Mike
  Topic: Reversing Direction in For() statement
Mike Walne

Replies: 22
Views: 44088

PostForum: General CCS C Discussion   Posted: Wed Jul 15, 2020 2:46 pm   Subject: Reversing Direction in For() statement
Will something along the lines of (not in CCS code):-

if i> stop then i = start;
if i< start then i =stop;

Someone here may have a clever way of reducing it one line of code.

Mike
  Topic: Button assignment
Mike Walne

Replies: 7
Views: 20770

PostForum: General CCS C Discussion   Posted: Thu May 07, 2020 2:46 pm   Subject: Button assignment
We've met before and I still have no intention of writing code for you.

Maybe this will help.

1st line LCD___________Time setting 12:45
2nd line LCD ___________UP__DN__ENTER

Your three butt ...
  Topic: Button assignment
Mike Walne

Replies: 7
Views: 20770

PostForum: General CCS C Discussion   Posted: Thu May 07, 2020 2:01 pm   Subject: Button assignment
It's simpler to use only 3 buttons.

Your text for a page or up/down is on the top line of the LCD.

Each button is equally spaced below the bottom line.

The text above each button indicates it ...
  Topic: short press and long press tactile button
Mike Walne

Replies: 13
Views: 34140

PostForum: General CCS C Discussion   Posted: Tue Mar 10, 2020 6:21 am   Subject: short press and long press tactile button
Or you could try something like standard keyboard method where you recognise the difference between a sharp tap and a longer hold for auto-repeat.

There must be loads of examples out there.

Mike
  Topic: I2c communication arduino master pic slave
Mike Walne

Replies: 12
Views: 24461

PostForum: General CCS C Discussion   Posted: Mon Feb 17, 2020 9:43 am   Subject: I2c communication arduino master pic slave
Forget proteus/ISIS, unlikely anyone here can help.

Use real hardware instead.


Mike
  Topic: Pic16f1824 and frequency measuring
Mike Walne

Replies: 4
Views: 12915

PostForum: General CCS C Discussion   Posted: Thu Dec 19, 2019 4:09 pm   Subject: Pic16f1824 and frequency measuring
There are many examples on this forum.

Several use Timer1 as input.

Either way if your code is correct you will inevitably 8MHz, whether your clock is really in the low MHz or high tens MHz.

...
  Topic: need pic16f676 based voltmeter code
Mike Walne

Replies: 28
Views: 62910

PostForum: General CCS C Discussion   Posted: Sun Oct 13, 2019 7:43 am   Subject: need pic16f676 based voltmeter code
What is the order of magnitude of the variation in your ADC readings?

Using a 'scope how does it compare with the ADC reference noise and the noise at your ADC input?

Mike
  Topic: RS232 on one wire
Mike Walne

Replies: 41
Views: 62993

PostForum: General CCS C Discussion   Posted: Tue Oct 08, 2019 2:50 am   Subject: Re: RS232 on one wire
I guessed the typo for the resistor was 4.7K then tried 47K.

Like PCM says, it's not a typo.
It's a convention that's been around since 1952 as part of BS1852, and later modifications.
The purpos ...
  Topic: measurement pulse width
Mike Walne

Replies: 5
Views: 12992

PostForum: General CCS C Discussion   Posted: Sun Sep 01, 2019 2:55 pm   Subject: measurement pulse width
What sort of errors are you getting?

Are they random?
Always too low / high?
Similar range for both Rb0 and Rb1?

Mike

EDIT Where in your code have you initialised the counts for pulseWidth( ...
  Topic: RS232 sending variable
Mike Walne

Replies: 5
Views: 13434

PostForum: General CCS C Discussion   Posted: Thu Aug 29, 2019 2:05 am   Subject: RS232 sending variable
CCS provides sample programs for both sending and receiving characters.

I prefer to work with ASCII characters so that I can use a PC to sniff at the data and be able to easily read what's happenin ...
 
Page 1 of 116 Goto page 1, 2, 3 ... 114, 115, 116  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group