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 19 matches
CCS Forum Index
Author Message
  Topic: 12LF1822 POWER TEST
delesan

Replies: 8
Views: 10774

PostForum: General CCS C Discussion   Posted: Thu Feb 17, 2011 1:38 am   Subject: 12LF1822 power test
output_float(PIN_A0);
output_float(PIN_A1);
//output_float(PIN_A2);
output_float(PIN_A3);
output_float(PIN_A4);
output_float(PIN_A5);

Don't set CMOS pins as floating input pins. Set th ...
  Topic: 12LF1822 POWER TEST
delesan

Replies: 8
Views: 10774

PostForum: General CCS C Discussion   Posted: Wed Feb 16, 2011 10:10 am   Subject: 12LF1822 POWER TEST
Hi everyone,

The following code was run on the 12LF1822 to test its power consumption rating:

#include <12LF1822.h>
#fuses INTRC_IO, NOWDT,NOPROTECT,NOMCLR,NOBROWNOUT,NOPUT,NOIESO,NOFCMEN ...
  Topic: DISABLE 12LF1822 EUSART
delesan

Replies: 4
Views: 5207

PostForum: General CCS C Discussion   Posted: Fri Feb 04, 2011 7:00 am   Subject: DISABLE 12LF1822 EUSART
FWIW, If you take a look at the device header file:


////////////////////////////////////////////////////////////////// UART
// Constants used in setup_uart() are:
// FALSE - Turn UART off
// T ...
  Topic: DISABLE 12LF1822 EUSART
delesan

Replies: 4
Views: 5207

PostForum: General CCS C Discussion   Posted: Fri Feb 04, 2011 4:03 am   Subject: DISABLE 12LF1822 EUSART
Included the following code before main() to disable the EUSART:

#byte TXSTA=0x02
#byte RCSTA=0x08

The registers TXSTA and RCSTA are the registers for configuring the EUSART for the 12LF1822. ...
  Topic: DISABLE 12LF1822 EUSART
delesan

Replies: 4
Views: 5207

PostForum: General CCS C Discussion   Posted: Fri Feb 04, 2011 3:18 am   Subject: DISABLE 12LF1822 EUSART
Hi everyone,

Still having challenges with the 12LF1822. Am trying to completely disable the EUSART - both transmit and receive.

Used setup_uart(0) and setup_uart_speed(0) but CCS C compiler (ver ...
  Topic: 12LF1822 CLKOUT PIN
delesan

Replies: 3
Views: 4909

PostForum: General CCS C Discussion   Posted: Fri Feb 04, 2011 3:13 am   Subject: 12LF1822 CLKOUT PIN
Placed before main() the following and was able to disable the CLKOUT for the 12LF1822:

#rom 0x8007 = {0b00100110100100}.

Regards
  Topic: 12LF1822 CLKOUT PIN
delesan

Replies: 3
Views: 4909

PostForum: General CCS C Discussion   Posted: Thu Feb 03, 2011 3:50 am   Subject: 12LF1822 CLKOUT PIN
Thanks Ttelmah.

I do apologize for omitting the details. I am using the PICKIT 3 version 01.26.05. The compiler is CCS C-compiler. Couldn't find the version. I am using the MPLAB IDE version 8.50. ...
  Topic: 12LF1822 CLKOUT PIN
delesan

Replies: 3
Views: 4909

PostForum: General CCS C Discussion   Posted: Thu Feb 03, 2011 3:07 am   Subject: 12LF1822 CLKOUT PIN
Hi everyone,

I just got the 12LF1822 and attempting to run a working program from the 12F683. Noticed PIN 4 - CLKOUT is outputting fosc/4 despite the fact that I had disabled it in the fuses direc ...
  Topic: Monitoring AC voltage signal
delesan

Replies: 3
Views: 5208

PostForum: General CCS C Discussion   Posted: Wed Jul 07, 2010 8:00 am   Subject: Monitoring AC voltage signal
Thanks.

Tried the second option using the voltage divider and the peak detector. As you rightly stated, I encoountered spikes from the ac signal.
Will now include a low pass filter before the peak ...
  Topic: Monitoring AC voltage signal
delesan

Replies: 3
Views: 5208

PostForum: General CCS C Discussion   Posted: Mon Jul 05, 2010 1:46 am   Subject: Monitoring AC voltage signal
Hi everyone,

Progressing further with learning to use the 12F683 analogue comparator function, would appreciate suggestions on how I can use this to monitor an input AC voltage signal ~ 4V peak-to- ...
  Topic: 12F683 Analogue comparator
delesan

Replies: 4
Views: 19079

PostForum: General CCS C Discussion   Posted: Mon Jul 05, 2010 1:37 am   Subject: ANALOGUE COMPARATOR ON 12F683
Many thanks for the example source code. It worked.
  Topic: 12F683 Analogue comparator
delesan

Replies: 4
Views: 19079

PostForum: General CCS C Discussion   Posted: Fri Jul 02, 2010 2:03 am   Subject: ANALOGUE COMPARATOR ON 12F683
Many thanks for the example program code.

Will try it out now.
  Topic: 12F683 Analogue comparator
delesan

Replies: 4
Views: 19079

PostForum: General CCS C Discussion   Posted: Thu Jul 01, 2010 3:38 am   Subject: 12F683 Analogue comparator
Hi,

I would like to monitor the output when an analogue signal goes above 1V compared with the internal voltage reference.

Could anyone kindly provide the steps to configure/setup the analogue c ...
  Topic: Monitor 12F683 Vdd and wake-up when >2Vdc
delesan

Replies: 9
Views: 9289

PostForum: General CCS C Discussion   Posted: Fri Jun 25, 2010 2:00 am   Subject: RE:Monitor 12F683 Vdd and wake-up when >2Vdc
Many thanks once again for the clarification.
I will now resort to setting a long delay immediately on power-up of the 12F683 - time enough for the capacitor to charge with minimal loading from the P ...
  Topic: Monitor 12F683 Vdd and wake-up when >2Vdc
delesan

Replies: 9
Views: 9289

PostForum: General CCS C Discussion   Posted: Thu Jun 24, 2010 9:32 am   Subject: RE:Monitor 12F683 Vdd and wake-up when >2Vdc
Just checked through the 2007 12F683 data sheet. On page 87, Figure 12-3 shows that the brownout causes a positive-going rise in the internal reset when there is a dip below Vdd, lower than VBOR. It d ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group