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: Weird behavior 16F819
Tunfiskur

Replies: 3
Views: 6835

PostForum: General CCS C Discussion   Posted: Mon Apr 22, 2013 2:34 pm   Subject: Weird behavior 16F819
Get rid of LVP.

You do not want this, and it is causing the behaviour you are seeing.

As a general comment, it is bad practice to have pins left floating.

Best Wishes

Thanks,

Another qu ...
  Topic: Weird behavior 16F819
Tunfiskur

Replies: 3
Views: 6835

PostForum: General CCS C Discussion   Posted: Mon Apr 22, 2013 2:04 pm   Subject: Weird behavior 16F819
Im trying to get my 16F819 to work. For now just a simple led blink.

Problem: The led only blinks if i hold the MCLR (pin 4) with my fingers. If i let go of it, the led will just go into very rand ...
  Topic: Time loops in CCS
Tunfiskur

Replies: 4
Views: 7426

PostForum: General CCS C Discussion   Posted: Sat Jun 09, 2012 9:02 am   Subject: Time loops in CCS
Hey, i'm looking for a way to get programs execution time in CCS if that is possible. Something like clock_t start = clock(); clock_t ends = clock(); in c++ visual, or even like ardoino's 16F886
4MHZ ...
  Topic: 16F886 I2C question
Tunfiskur

Replies: 18
Views: 38593

PostForum: General CCS C Discussion   Posted: Fri Jun 08, 2012 5:58 pm   Subject: 16F886 I2C question
Update: this is finally working to some extent at least, and I'm receiving data back when i request a read from the registers. I added a init_device() to the code that sets up the chip to ON mode and ...
  Topic: 16F886 I2C question
Tunfiskur

Replies: 18
Views: 38593

PostForum: General CCS C Discussion   Posted: Fri Jun 08, 2012 5:33 pm   Subject: 16F886 I2C question
This is currently what im working with:


#include "i2cversion2.h"

void write_device(unsigned char address, unsigned char data)
{
i2c_start();
i2c_write& ...
  Topic: 16F886 I2C question
Tunfiskur

Replies: 18
Views: 38593

PostForum: General CCS C Discussion   Posted: Fri Jun 08, 2012 5:04 pm   Subject: 16F886 I2C question
Copied, compiled without errors before posted:


#include <16F887.h>
#fuses INTRC_IO,NOWDT,NOPROTECT,PUT,NOLVP,NOBROWNOUT
#use delay(clock=4M)
#use i2c(Master, sda=PIN_C4, s ...
  Topic: 16F886 I2C question
Tunfiskur

Replies: 18
Views: 38593

PostForum: General CCS C Discussion   Posted: Fri Jun 08, 2012 3:49 pm   Subject: 16F886 I2C question
Thats a neat little code. It returned the slave address and a number of i2c chips.

Start:
ACD ADDR: D2

Number if i2c chips found: 1
  Topic: 16F886 I2C question
Tunfiskur

Replies: 18
Views: 38593

PostForum: General CCS C Discussion   Posted: Fri Jun 08, 2012 2:15 pm   Subject: 16F886 I2C question
Thank you all for the help guys, i really appreciate it. I have fixed all the suggestions above. I'm getting something back at least but only two numbers from the results. Either 01 or 00, depending o ...
  Topic: 16F886 I2C question
Tunfiskur

Replies: 18
Views: 38593

PostForum: General CCS C Discussion   Posted: Fri Jun 08, 2012 11:12 am   Subject: 16F886 I2C question
I worked a bit on this code but no results. I have set up the right protocols for the I2C i think.

#include "ic2.h"
#include "SendRecive.c"
#define Vistfang_Gyro 0x69

void ...
  Topic: 16F886 I2C question
Tunfiskur

Replies: 18
Views: 38593

PostForum: General CCS C Discussion   Posted: Fri Jun 08, 2012 8:08 am   Subject: 16F886 I2C question
yeah the pull-up resistors are in place
  Topic: 16F886 I2C question
Tunfiskur

Replies: 18
Views: 38593

PostForum: General CCS C Discussion   Posted: Fri Jun 08, 2012 7:22 am   Subject: 16F886 I2C question
Hello, im trying to get started with I2C stuff. Im currently trying to get my 16F886 to read from my #include "ic2.h"


void main()
{
int result=0;

setup_adc_ports& ...
  Topic: Input not working - Stepper motor control 16f84a
Tunfiskur

Replies: 2
Views: 5427

PostForum: General CCS C Discussion   Posted: Sat Jun 02, 2012 7:57 am   Subject: Input not working - Stepper motor control 16f84a
Thanks for the awesome info, it helped alot.
  Topic: Input not working - Stepper motor control 16f84a
Tunfiskur

Replies: 2
Views: 5427

PostForum: General CCS C Discussion   Posted: Fri Jun 01, 2012 9:08 pm   Subject: Input not working - Stepper motor control 16f84a
Hello guys, I was hoping that someone could help me with a small problem I have with my code. I'm using V 4.013.

Desired function of code:
Basically I want the 16f84a to run the stepper_FW() funct ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group