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 142 matches
CCS Forum Index
Author Message
  Topic: USB Keyboard : how to find scancode for specific functions ?
vtrx

Replies: 4
Views: 3838

PostForum: General CCS C Discussion   Posted: Tue Jul 30, 2024 4:53 pm   Subject: USB Keyboard : how to find scancode for specific functions ?
Read these tips here.

https://www.ccsinfo.com/forum/viewtopic.php?t=59253&highlight=vtrx
  Topic: PIC16F1455 USB HID
vtrx

Replies: 9
Views: 19696

PostForum: General CCS C Discussion   Posted: Tue Feb 07, 2023 3:48 pm   Subject: PIC16F1455 USB HID
I've been programming in Delphi for many years to use native USB (HID).
A simple .exe controls the microcontroller and exchanges data between the PC and the microcontroller.
The 16F1455 microcontrol ...
  Topic: PIC16F1455 USB HID
vtrx

Replies: 9
Views: 19696

PostForum: General CCS C Discussion   Posted: Sun Feb 05, 2023 8:11 am   Subject: PIC16F1455 USB HID
/////////////////////////////////////////////////////////////////////////
//// pic16f_usb.h ////
//// ...
  Topic: PIC16F1455 USB HID
vtrx

Replies: 9
Views: 19696

PostForum: General CCS C Discussion   Posted: Sun Feb 05, 2023 7:20 am   Subject: PIC16F1455 USB HID
I don't have the actual hardware, but I think the initial header is this:
#fuses INTRC_IO, WDT_SW, PUT, NOMCLR, PROTECT, BROWNOUT, NOIESO, NOFCMEN, WRT, NOCPUDIV, LS48MHZ, PLL3X, PLLEN, STVREN, LPBOR ...
  Topic: PIC16F1455 USB HID
vtrx

Replies: 9
Views: 19696

PostForum: General CCS C Discussion   Posted: Sun Feb 05, 2023 6:05 am   Subject: PIC16F1455 USB HID
Where could I find a USB HID example (Keyborad or Joystick) using the 16F1455?
I tried to convert my programs made to 18F but i just couldn't.
  Topic: Backup data using INT_HLVD
vtrx

Replies: 2
Views: 12176

PostForum: General CCS C Discussion   Posted: Tue Aug 02, 2022 9:04 am   Subject: Backup data using INT_HLVD
I'm experimenting with a backup system to write a value to the PIC's internal Eeprom to be able to use it when powering on the system.
Initially it is working fine, but there are some details that ne ...
  Topic: PORTB interrupt on change
vtrx

Replies: 17
Views: 47388

PostForum: General CCS C Discussion   Posted: Sun Jul 10, 2022 9:07 am   Subject: PORTB interrupt on change
I got the interrupt with PORTb and PORTc together after reading this post:
https://www.ccsinfo.com/forum/viewtopic.php?t=54775
  Topic: PORTB interrupt on change
vtrx

Replies: 17
Views: 47388

PostForum: General CCS C Discussion   Posted: Mon Jul 04, 2022 8:16 am   Subject: PORTB interrupt on change
I will mix with a portc because C5 and C4 is being used with USB.
  Topic: PORTB interrupt on change
vtrx

Replies: 17
Views: 47388

PostForum: General CCS C Discussion   Posted: Sun Jul 03, 2022 8:37 am   Subject: PORTB interrupt on change
I'll use the code from the link, it was the best for my hardware.
https://simple-circuit.com/pic18f46k22-rotary-encoder-7-segment-ccs/
I used two rotary encoders using the interrupt in portB, I coul ...
  Topic: PORTB interrupt on change
vtrx

Replies: 17
Views: 47388

PostForum: General CCS C Discussion   Posted: Fri Jul 01, 2022 8:52 am   Subject: PORTB interrupt on change
I found this method, reading is very fast, I changed it to use interrupt on change.
There is a problem, the result jumps two values, eg 1,3,5,7 both forward and backward.
Any ideas how I can get aro ...
  Topic: PORTB interrupt on change
vtrx

Replies: 17
Views: 47388

PostForum: General CCS C Discussion   Posted: Thu Jun 30, 2022 3:49 pm   Subject: PORTB interrupt on change
I tested four codes and the best one for my hardware was the one in the link I posted, but sometimes the count 'fails' in 1 step.
  Topic: PORTB interrupt on change
vtrx

Replies: 17
Views: 47388

PostForum: General CCS C Discussion   Posted: Wed Jun 29, 2022 5:29 pm   Subject: PORTB interrupt on change
I'm testing some routines for reading a rotary encoder.
I intend to use the example from the link, but using the 18F45K50.
https://simple-circuit.com/pic18f46k22-rotary-encoder-7-segment-ccs/

the ...
  Topic: 12F675 software UART
vtrx

Replies: 20
Views: 49971

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2022 4:34 pm   Subject: 12F675 software UART
Sorry for the confusion, I decided to use the cheaper one.
I did some tests here and it worked like this:


...
//========== while ==========
// loop_usb++;
if(u_off == 0)
&# ...
  Topic: 12F675 software UART
vtrx

Replies: 20
Views: 49971

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2022 3:44 pm   Subject: 12F675 software UART
This is the whole code.
#include <12F683.h>

//#fuses INTRC_IO,NOWDT,NOBROWNOUT,NOPROTECT,NOMCLR
#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC_IO //Inter ...
  Topic: 12F675 software UART
vtrx

Replies: 20
Views: 49971

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2022 7:16 pm   Subject: 12F675 software UART
New problem.
I added an effect to test and something strange happens.
It's a flashing effect trying not to change the program flow.

char u_off;
...
void main(void)
{
...
...
 
Page 1 of 10 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group