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 7 matches
CCS Forum Index
Author Message
  Topic: #pin_select for HW SPI problem
Desert Leo

Replies: 8
Views: 19118

PostForum: General CCS C Discussion   Posted: Tue Mar 16, 2021 8:37 am   Subject: #pin_select for HW SPI problem
This

#pin_select SDI1 = PIN_G6
#pin_select SDO1 = PIN_G8
#pin_select SCK1OUT = PIN_G7
#use spi(MASTER, SPI1, MODE = 0)

SPI setup gives:
RPINR20 = 0b 00011010 00010101
6 of LS bits ...
  Topic: #pin_select for HW SPI problem
Desert Leo

Replies: 8
Views: 19118

PostForum: General CCS C Discussion   Posted: Tue Mar 16, 2021 4:41 am   Subject: #pin_select for HW SPI problem
Final result: getenv() is not working with parameters "SPIх_CLK", "SPIх_DI" or SPIх_DO", but with "UARTx_RX" and "UARTx_TX" is working perfect.
RPx pi ...
  Topic: #pin_select for HW SPI problem
Desert Leo

Replies: 8
Views: 19118

PostForum: General CCS C Discussion   Posted: Thu Mar 11, 2021 5:54 am   Subject: #pin_select for HW SPI problem

#pin_select SCK1OUT = PIN_G7
#pin_select SDI1 = PIN_G6
#pin_select SDO1 = PIN_G8
#use spi(MASTER, FORCE_HW, SPI1, CLK = PIN_G7, DO = PIN_G8, DI = PIN_G6, MODE = 0, BAUD = 1000000)

Sam ...
  Topic: #pin_select for HW SPI problem
Desert Leo

Replies: 8
Views: 19118

PostForum: General CCS C Discussion   Posted: Thu Mar 11, 2021 5:33 am   Subject: #pin_select for HW SPI problem
MPLAB X IDE v5.30
CCS C v5.061
PIC24FJ1024GA606

#pin_select SCK1OUT = PIN_G7
#pin_select SDI1 = PIN_G6
#pin_select SDO1 = PIN_G8
#use spi(MASTER, SPI1, MODE = 0, BAUD = 1000000)

g ...
  Topic: Problem with RS232 found, but not solution
Desert Leo

Replies: 8
Views: 10009

PostForum: General CCS C Discussion   Posted: Mon Jun 13, 2011 5:09 am   Subject: Problem with RS232 found, but not solution
Proceed as described in Ttelmah's last post.
In your code put the row "setup_uart(9600);" AFTER GSM power on command.
  Topic: Problem with RS232 found, but not solution
Desert Leo

Replies: 8
Views: 10009

PostForum: General CCS C Discussion   Posted: Sun Jun 12, 2011 10:43 am   Subject: Problem with RS232 found, but not solution
Volker, are you sure that when PIC RX pin is disconnected during power up of GSM module everything is OK. Or it is PIC TX pin? Some GSM modules hungs-up when voltage is aplied to input pin BEFORE powe ...
  Topic: PIC24FJ64GA102 RTCC interrupt
Desert Leo

Replies: 0
Views: 3395

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2011 1:33 am   Subject: PIC24FJ64GA102 RTCC interrupt
Hi all,
Sorry for stupid question, but ...

After:
setup_rtc_alarm(RTC_ALARM_ENABLE, RTC_ALARM_SECOND, 1);


RTCC interrupt wakes up microcontroller from sleep. RTC_ALARM_SECOND also ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group