Author |
Message |
Topic: rs232 LED BLINK pıc-to-pıc communication |
mdemuth
Replies: 79
Views: 128094
|
Forum: General CCS C Discussion Posted: Mon Mar 13, 2023 1:01 am Subject: rs232 LED BLINK pıc-to-pıc communication |
Your receiver should check first if there is something in the UART and then take out the character:
while (!kbhit()) // wait for character
{
delay_us(20);
... |
Topic: PIC16f15324 Pin A4 and Pin A5 not responding [solved] |
mdemuth
Replies: 3
Views: 11977
|
Forum: General CCS C Discussion Posted: Tue Nov 22, 2022 6:47 am Subject: PIC16f15324 Pin A4 and Pin A5 not responding [solved] |
Strike!
Thanks! |
Topic: PIC16f15324 Pin A4 and Pin A5 not responding [solved] |
mdemuth
Replies: 3
Views: 11977
|
Forum: General CCS C Discussion Posted: Tue Nov 22, 2022 5:57 am Subject: PIC16f15324 Pin A4 and Pin A5 not responding [solved] |
Hello,
I am trying to get Pin A4 and Pin A5 working on PIC16f15324.
CCS Compiler Version: 5.103
My code:
#include <16f15324.h>
#fuses HS, NOCLKOUT, NOWDT,NOPROTECT,BROWNOUT,PUT,MCL ... |
Topic: PIC16F877A int_timer1 |
mdemuth
Replies: 4
Views: 15545
|
Forum: General CCS C Discussion Posted: Tue Nov 30, 2021 4:01 am Subject: PIC16F877A int_timer1 |
Take a look into the ASM file (lst). It takes a few cycles to save registers before set_timer is executed.
(I also would recommend to change the "overflow-counters" if (x==yy) into if (y& ... |
Topic: Quitting MplabX |
mdemuth
Replies: 24
Views: 61577
|
Forum: General CCS C Discussion Posted: Mon Nov 22, 2021 8:28 am Subject: Quitting MplabX |
I use CCS IDE to write and compile the code. To program the hardware I use PICKitPlus and the good old PICKit2 programmer as first choice.
(I gave up on MPLAB many years ago....)
As a second choice ... |
Topic: Load Int16 with hex value |
mdemuth
Replies: 12
Views: 31681
|
Forum: General CCS C Discussion Posted: Fri Nov 12, 2021 12:35 am Subject: Load Int16 with hex value |
OK, then you are printing format is decimal not hex e.g. 65536 instead of FFFF
It works (almost) just as well. The important thing is to have a clear separation between control characters and content ... |
Topic: Load Int16 with hex value |
mdemuth
Replies: 12
Views: 31681
|
Forum: General CCS C Discussion Posted: Tue Nov 09, 2021 9:13 am Subject: Load Int16 with hex value |
I think you are looking for something returns an int16 which is built from 4 received characters.
You can use:
int8 ASCI_TO_HEX(int8 high_nibble, int8 low_nibble)
{
int8 valu ... |
Topic: how to receive string from PC using RS232 |
mdemuth
Replies: 2
Views: 10755
|
Forum: General CCS C Discussion Posted: Wed Jul 29, 2020 5:37 am Subject: how to receive string from PC using RS232 |
// Receive data
for (rx_buffid=0; rx_buffid < RX_BUFFER_LENGTH; rx_buffid++) rx_buffer[rx_buffid]=0; // empty the buffer
rx_complete = false;
while (rx_complete == f ... |
Topic: Humidity & Temperature Sensor |
mdemuth
Replies: 24
Views: 51336
|
Forum: General CCS C Discussion Posted: Tue Jun 02, 2020 6:54 am Subject: Humidity & Temperature Sensor |
Sensirion's SHT21 is used to measure "ambient clima".
Simple to apply with I²C with high precision. |
Topic: Firmware update from USB Stick |
mdemuth
Replies: 13
Views: 27663
|
Forum: General CCS C Discussion Posted: Mon Mar 16, 2020 9:17 am Subject: Firmware update from USB Stick |
Hi Temtronic,
I have bought myself a V2DIP1-48. Today I found the time to get this thing going using a simple terminal program. I am able to write and read file etc. The main task is to write and tr ... |
Topic: Firmware update from USB Stick |
mdemuth
Replies: 13
Views: 27663
|
Forum: General CCS C Discussion Posted: Mon Mar 16, 2020 1:29 am Subject: Update? |
Hi,
I am using the SD-memory card interface for updates from https://www.brushelectronics.com.
Now I want to migrate from SD-memory card to USB memory stick using the vinculum chip to access the US ... |
Topic: Serial num in EEPROM & FLASH |
mdemuth
Replies: 24
Views: 46707
|
Forum: General CCS C Discussion Posted: Tue Dec 18, 2018 8:33 am Subject: Serial num in EEPROM & FLASH |
It might be an option to use the command line interface with the PICKIT2/3+
https://www.microchip.com/forums/m1047644.aspx
But: this one also costs money |
Topic: PIC4FJ128GA204 Parallel Master Port Data Access |
mdemuth
Replies: 3
Views: 12531
|
Forum: General CCS C Discussion Posted: Mon Oct 10, 2016 7:04 am Subject: PIC4FJ128GA204 Parallel Master Port Data Access |
setup_psp(PAR_ENABLE | PAR_PTBE1EN_ENABLE | PAR_PTBE0EN_ENABLE ,0x00FF); //Sets up Master mode with address//lines PMA0:PMA7
gives the same result.
and:
setup_pmp(PAR_EN ... |
Topic: PIC4FJ128GA204 Parallel Master Port Data Access |
mdemuth
Replies: 3
Views: 12531
|
Forum: General CCS C Discussion Posted: Mon Oct 10, 2016 6:25 am Subject: PIC4FJ128GA204 Parallel Master Port Data Access |
Hello I am trying to use the PMD0..7 to simply write data to an LCD.
int8 counter8= 0;
void main()
{
setup_oscillator(OSC_INTERNAL,64000000,8000000);
setup_wdt(WDT_1S ... |
Topic: ex_fat.c: nothing to see on the PC (solved) |
mdemuth
Replies: 8
Views: 12554
|
Forum: General CCS C Discussion Posted: Mon Apr 13, 2015 5:51 am Subject: ex_fat.c: nothing to see on the PC (solved) |
Thanks for the hint, that's it!
Problem solved! |
|