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 13 matches
CCS Forum Index
Author Message
  Topic: generation of 1 kilohertz siren tone using timer 1
swapnil

Replies: 5
Views: 16361

PostForum: General CCS C Discussion   Posted: Sat Jan 07, 2023 8:01 am   Subject: Re: generation of 1 kilohertz siren tone using timer 1
Post some code and do tell what is wrong with the tone.

#include <12f675.h>
#fuses INTRC_IO,NOWDT,NOMCLR,PROTECT
#use delay(internal=4000000)

#define TONE_PIN PIN_A0
#define RE ...
  Topic: generation of 1 kilohertz siren tone using timer 1
swapnil

Replies: 5
Views: 16361

PostForum: General CCS C Discussion   Posted: Fri Jan 06, 2023 10:38 pm   Subject: generation of 1 kilohertz siren tone using timer 1
Post some code and do tell what is wrong with the tone.

#include <12f675.h>
#fuses INTRC_IO,NOWDT,NOMCLR,PROTECT
#use delay(internal=4000000)

#define TONE_PIN PIN_A0
#define RE ...
  Topic: generation of 1 kilohertz siren tone using timer 1
swapnil

Replies: 5
Views: 16361

PostForum: General CCS C Discussion   Posted: Fri Jan 06, 2023 12:59 pm   Subject: generation of 1 kilohertz siren tone using timer 1
hi
I want to generate 600 Hz to 700 Hz siren tone using timer 1 in 12f675 mcu, please help.
I generated by delay function but tone is not exactly what i want.
  Topic: I am trying to get result from adc pin 12F675
swapnil

Replies: 1
Views: 12538

PostForum: General CCS C Discussion   Posted: Sat Aug 21, 2021 3:24 am   Subject: I am trying to get result from adc pin 12F675

#include <12f675.h>
#device adc=10
#fuses INTRC_IO, NOWDT, PUT, BROWNOUT, MCLR
#use delay(clock=4000000)

#define RELAY PIN_A3 // Relay for 110 v s ...
  Topic: How to drive 2-digit seven-segment display using 16F690 ?
swapnil

Replies: 1
Views: 7645

PostForum: General CCS C Discussion   Posted: Wed Mar 08, 2017 9:43 am   Subject: How to drive 2-digit seven-segment display using 16F690 ?
Dear friend, please help me out to drive two-digit seven-segment display.

For adc 10-bit resolution, 16F690 is suitable for me using 2.5 volt reference. Please suggest the code.
  Topic: No display of voltage value on lcd
swapnil

Replies: 3
Views: 10490

PostForum: General CCS C Discussion   Posted: Tue Jan 10, 2017 8:55 am   Subject: no voltage display
#include <16F872.h> //equivalent with 10bit ADC
#device ADC=10
#fuses HS //Never use the 'Protect' fuse until you have completed
//your development. Doing so forces every cell in the chip to ...
  Topic: pwm working fine i want, sensing the bout, pwm should vary
swapnil

Replies: 15
Views: 31510

PostForum: General CCS C Discussion   Posted: Tue Jan 10, 2017 8:39 am   Subject: hi sir Ttelmah
Good day sir,

I am not getting the display on lcd it is showing 0.0 volt.
I burned the code in pic 16F872 and checked on real hardware.


Please let me know if i can use 16f876a as it is avail ...
  Topic: pwm working fine i want, sensing the bout, pwm should vary
swapnil

Replies: 15
Views: 31510

PostForum: General CCS C Discussion   Posted: Sat Jan 07, 2017 11:22 pm   Subject: hi sir Ttelmah
sir please let me know in line #define MV_PER_COUNT (int16)(22.87/1024)
what calculation is 22.87.
i am trying to understand the calculation.
  Topic: pwm working fine i want, sensing the bout, pwm should vary
swapnil

Replies: 15
Views: 31510

PostForum: General CCS C Discussion   Posted: Sat Jan 07, 2017 8:55 am   Subject: Thanks a lot sir
Really thankful to you for the code, i will test the hardware tomorrow as i have to arrang the chip.872.
Please help me in adding pin no. Pin no. 7 of pic RA5 as ADC input to control the load w ...
  Topic: pwm working fine i want, sensing the bout, pwm should vary
swapnil

Replies: 15
Views: 31510

PostForum: General CCS C Discussion   Posted: Fri Jan 06, 2017 10:58 pm   Subject: hello sir, thanks for reply
The resistor value for solar voltage and battery voltage is 22 k and 2.7 k. On 12 volt input we will get 1.31 volt. I have to display the batt volt and sol volt on display in one decimal place, and ...
  Topic: pwm working fine i want, sensing the bout, pwm should vary
swapnil

Replies: 15
Views: 31510

PostForum: General CCS C Discussion   Posted: Fri Jan 06, 2017 9:17 am   Subject: pwm working fine i want, sensing the bout, pwm should vary
Honestly the get rid of FP, is probably the best thing.

Key is to understand that the PIC itself does not not use FP. It has a value coming in from the ADC, in simple binary counts. The only reason ...
  Topic: pwm working fine i want, sensing the bout, pwm should vary
swapnil

Replies: 15
Views: 31510

PostForum: General CCS C Discussion   Posted: Fri Jan 06, 2017 3:15 am   Subject: pwm working fine i want, sensing the bout, pwm should vary

#define AN0_AN1_AN2_AN4_VSS_VREF
#fuses HS,PROTECT
#use delay (clock=20MHz) // 4MHz
#define use_portb_lcd TRUE
#include <lcd.c>

#define CCP1_PWM PIN_C2
#define MAI ...
  Topic: Code is working fine in proteus but on hardware lcd not work
swapnil

Replies: 7
Views: 17236

PostForum: General CCS C Discussion   Posted: Thu Dec 15, 2016 9:52 am   Subject: Code is working fine in proteus but on hardware lcd not work
#include <16c72a.h>
#device adc=8
#fuses XT
#use delay (clock=4000000) // 4MHz clock
#use fast_io(c)
#define use_portb_lcd TRUE
#include <lcd.c>

#define MOSFET ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group