Author |
Message |
Topic: PIC18F46K80 Can Interface |
fkl
Replies: 14
Views: 33629
|
Forum: General CCS C Discussion Posted: Thu May 11, 2023 6:26 am Subject: PIC18F46K80 Can Interface |
In the help ccs c only lists the functions of the CAN bus, in general there is a more detailed description of these functions?
In particular, how to add filters and masks correctly? |
Topic: PIC18F46K80 Can Interface |
fkl
Replies: 14
Views: 33629
|
Forum: General CCS C Discussion Posted: Tue May 02, 2023 10:31 am Subject: PIC18F46K80 Can Interface |
#define CAN_BRG_PRESCALAR 0
#define CAN_BRG_PHASE_SEGMENT_1 5
#define CAN_BRG_PHASE_SEGMENT_2 1
#define CAN_BRG_PROPAGATION_TIME 6
#define CAN_BRG_SYNCH_JUMP_WIDTH 1
... |
Topic: PIC18F46K80 Can Interface |
fkl
Replies: 14
Views: 33629
|
Forum: General CCS C Discussion Posted: Tue May 02, 2023 7:34 am Subject: PIC18F46K80 Can Interface |
//setup pins
TRISB2 = 0;
TRISB3 = 1;
CANCON = 0b10000000; //set to Configuration mode
while ((CANSTAT & 0b11100000) != 0b10000000);
BRGCON2bits.SEG2PHTS = 1; //freely p ... |
Topic: PIC18F46K80 Can Interface |
fkl
Replies: 14
Views: 33629
|
Forum: General CCS C Discussion Posted: Tue May 02, 2023 6:17 am Subject: PIC18F46K80 Can Interface |
hello.
PIC18F46K80
As an example, do I need to use ex_can_ccs_a.c ?
How to calculate these variables correctly in relation to 500K bus speed?
#define CAN_BRG_PRESCALAR 3 //Set ... |
Topic: OLED 128x64 SSD1306 I2C PIC16F1788 driver |
fkl
Replies: 15
Views: 146781
|
Forum: Code Library Posted: Wed Oct 01, 2014 6:35 am Subject: Re: OLED 128x64 SSD1306 I2C PIC16F1788 driver |
1k and little more of RAM.
possible to modify the code to remove this restriction?
to 0.5k |
Topic: pid + pwm + dc motor |
fkl
Replies: 1
Views: 4867
|
Forum: General CCS C Discussion Posted: Sat Oct 19, 2013 6:03 am Subject: pid + pwm + dc motor |
Need to manage the speed of the DC motor, as a sensor feedback - optocoupler.
The speed is controlled - PWM.
There are some ready PID code or algorithm for DC motor? |
Topic: spi MISO - no exchange of data |
fkl
Replies: 1
Views: 4761
|
Forum: General CCS C Discussion Posted: Fri Sep 27, 2013 11:03 am Subject: spi MISO - no exchange of data |
Please help.
chip pic24fj064gb106
#pin_select SCK1OUT=PIN_B1
#pin_select SDI=PIN_B0
#pin_select SDO=PIN_B2
#use spi (MASTER, SPI1, MODE=0, BITS=8, ENABLE=PIN9, STREAM=SPI_PORT1_0, FORCE_H ... |
Topic: pwm + pic18f14k50 |
fkl
Replies: 2
Views: 6345
|
Forum: General CCS C Discussion Posted: Wed Sep 18, 2013 7:37 am Subject: pwm + pic18f14k50 |
thank you very much. |
Topic: pwm + pic18f14k50 |
fkl
Replies: 2
Views: 6345
|
Forum: General CCS C Discussion Posted: Tue Sep 17, 2013 11:04 pm Subject: pwm + pic18f14k50 |
hi.
Help. How to configure PWM output RC3?
setup_timer_2(T2_DIV_BY_4,249,1);
setup_ccp1(CCP_PWM);
set_pwm1_duty(500); |
Topic: 7-segment display blinking |
fkl
Replies: 9
Views: 14629
|
Forum: General CCS C Discussion Posted: Sat Sep 07, 2013 4:28 am Subject: 7-segment display blinking |
when temperature is negative - it does not work correctly. |
Topic: Usb Mass Storage + eeprom (or flash pic, or eeprom pic) |
fkl
Replies: 3
Views: 7122
|
Forum: General CCS C Discussion Posted: Thu Aug 15, 2013 3:51 am Subject: Usb Mass Storage + eeprom (or flash pic, or eeprom pic) |
Don't do either....
On the USB side, you need the bulk device (as in the scope example), with the descriptor type set to 8 (mass storage).
However you need to also be aware of the difficulties thi ... |
Topic: Usb Mass Storage + eeprom (or flash pic, or eeprom pic) |
fkl
Replies: 3
Views: 7122
|
Forum: General CCS C Discussion Posted: Tue Aug 13, 2013 11:19 pm Subject: Usb Mass Storage + eeprom (or flash pic, or eeprom pic) |
Please help me how to make a device that is in the OS defined as a regular USB flash drive, and then works with the external/internal eeprom memory or free space of the flash microcontroller. |
Topic: PIC18F4550 CDC + HID |
fkl
Replies: 6
Views: 12068
|
Forum: General CCS C Discussion Posted: Tue Aug 13, 2013 11:26 am Subject: PIC18F4550 CDC + HID |
ex_usb_hid_and_cdc.c
Thanks! |
Topic: PIC18F4550 CDC + HID |
fkl
Replies: 6
Views: 12068
|
Forum: General CCS C Discussion Posted: Tue Aug 13, 2013 8:17 am Subject: PIC18F4550 CDC + HID |
Possible yes, but unsupported. You have to understand the design of the CCS usb examples and modify them accordingly.
Please help me how to implement it? |
Topic: HID Bootloader + CDC |
fkl
Replies: 5
Views: 9634
|
Forum: General CCS C Discussion Posted: Sun May 26, 2013 12:05 pm Subject: HID Bootloader + CDC |
One thing. Remember that the bootloader, will not program the fuse settings. It can't, since they need to be 'right for it' for it to work.
If your fuses in the CDC, do not match those used in the bo ... |
|