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 4 matches
CCS Forum Index
Author Message
  Topic: External counter seems prescaled (divided by 2)
swartz

Replies: 15
Views: 44906

PostForum: General CCS C Discussion   Posted: Sat Nov 27, 2021 1:41 pm   Subject: External counter seems prescaled (divided by 2)

#include <e3.h>

void main(void)
{
int8 counter;
int8 total = 0;

setup_timer_0( T0_EXT_L_TO_H | T0_DIV_1);
set_timer0( 0 );

while& ...
  Topic: External counter seems prescaled (divided by 2)
swartz

Replies: 15
Views: 44906

PostForum: General CCS C Discussion   Posted: Fri Nov 26, 2021 6:33 pm   Subject: external counter seems prescaled (divided by 2)
Gents -- have been away from this for a bit. I appreciate all the responses. Thank you very much for this!

The response about the defines that setup the counter control register pre-scaling is not ...
  Topic: External counter seems prescaled (divided by 2)
swartz

Replies: 15
Views: 44906

PostForum: General CCS C Discussion   Posted: Mon Nov 15, 2021 4:17 pm   Subject: External counter seems prescaled (divided by 2)
His posted code is totally different from the sensor code provided
by CCS with the compiler.

You are exactly correct. This small bit of code is for the E3 board and using the hall effect sensor ...
  Topic: External counter seems prescaled (divided by 2)
swartz

Replies: 15
Views: 44906

PostForum: General CCS C Discussion   Posted: Fri Nov 12, 2021 8:13 pm   Subject: External counter seems prescaled (divided by 2)
Working through the sensor samples. The code below is for the magnetic sensor - digital. I can't see anything wrong in the code -- it seems quite simple -- but there must be something I am not seeing. ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group