Author |
Message |
Topic: Timer2 calculator runtime |
tojape
Replies: 4
Views: 8479
|
Forum: General CCS C Discussion Posted: Sun Jun 23, 2013 3:51 pm Subject: Timer2 calculator runtime |
what you want is the NCO feature of the 16f1509
so
unless you want 1 hzfreq set resolution -
it will do what you want-
and
if you pick the right external frequency crystal
-with real simp ... |
Topic: Timer2 calculator runtime |
tojape
Replies: 4
Views: 8479
|
Forum: General CCS C Discussion Posted: Sun Jun 23, 2013 3:09 pm Subject: Timer2 calculator runtime |
You are probably not going to get there. 20KHz, would require 40Kips. Each interrupt takes typically a minimum of about 60 instruction times to execute, so at your 11MHz (2.7mips), you have no time le ... |
Topic: about variable in the ccs |
tojape
Replies: 3
Views: 5218
|
Forum: General CCS C Discussion Posted: Sun Jun 23, 2013 12:34 pm Subject: Re: about variable in the ccs |
hello,
I'm writing code in ccs, and i have problem that i don't know how to define the real number. Please help me.
I suppose you mean floating point numbers. CCS comes with a floating point exam ... |
Topic: Timer2 calculator runtime |
tojape
Replies: 4
Views: 8479
|
Forum: General CCS C Discussion Posted: Sun Jun 23, 2013 12:03 pm Subject: Timer2 calculator runtime |
Hi all,
I need to change timer2 interrupt frequency in runtime. The range is between 50Hz to 20 kHz. I quickly wrote this code which is actually working.
Due to lack of math backgound it is simple b ... |
Topic: Buttons , Internal pull up ? |
tojape
Replies: 5
Views: 13911
|
Forum: General CCS C Discussion Posted: Sat Jun 22, 2013 1:20 pm Subject: Re: Buttons , Internal pull up ? |
Hi tcruise7771
output_low(pin) changes the direction of a pin (except when you use fast_io)
You do not need to set the tris for the pins that are used as input for buttons (except when you use fas ... |
Topic: PIC16F1519 UART not receiving |
tojape
Replies: 5
Views: 9155
|
Forum: General CCS C Discussion Posted: Fri Jun 21, 2013 3:40 pm Subject: PIC16F1519 UART not receiving |
Thank you very much!
While you were typing I've found out the workaround adding the following code: :-)
#ASM
CLRF 0x18E
#ENDASM
When I realized that the initialization is not correct in th ... |
Topic: PIC16F1519 UART not receiving |
tojape
Replies: 5
Views: 9155
|
Forum: General CCS C Discussion Posted: Fri Jun 21, 2013 1:59 pm Subject: PIC16F1519 UART not receiving |
Thanks to both of you for your replies.
I didn't bother with stream name since if I don't specify it in the serial I/O functions the compiler assumes the last used "USE RS232" stream. But y ... |
Topic: PIC16F1519 UART not receiving |
tojape
Replies: 5
Views: 9155
|
Forum: General CCS C Discussion Posted: Fri Jun 21, 2013 12:49 pm Subject: PIC16F1519 UART not receiving |
Hi all,
I am having problem with a cheap pic micro: PIC16F1519 doesn't receive on RX pin (C7, pin 26) with the following code:
rs232test.c
#include <rs232test.h>
void main( ... |
Topic: Problem with aynchronous recption on PIC16F876 |
tojape
Replies: 3
Views: 5171
|
Forum: General CCS C Discussion Posted: Fri May 25, 2007 9:24 am Subject: Problem with aynchronous recption on PIC16F876 |
I agree with Ttelmah.
Every communication between two systems may contain corrupted data. You can not, moreover, may not! rely on the assumption that both sides will allways receive error free data. ... |
Topic: PIC18f45J10 flash programming problem |
tojape
Replies: 7
Views: 8664
|
Forum: General CCS C Discussion Posted: Fri May 25, 2007 2:33 am Subject: PIC18f45J10 flash programming problem |
To everyone who is interested in this problem:
Even the most recent datasheet of PIC18F45J10 contains the mistake in the example program of programming flash memory. Here is the exact copy of the dat ... |
Topic: PIC18f45J10 flash programming problem |
tojape
Replies: 7
Views: 8664
|
Forum: General CCS C Discussion Posted: Thu May 24, 2007 1:56 pm Subject: PIC18f45J10 flash programming problem |
V4.021 :-( |
Topic: How do you program non DIP pics? |
tojape
Replies: 7
Views: 7545
|
Forum: General CCS C Discussion Posted: Thu May 24, 2007 1:53 pm Subject: How do you program non DIP pics? |
The simpliest way to program nonDIP processors to place a 5 or 4 pin connector on the pcb. Usually you have to make available the inCircuit programming pins, (eg. PGC,PGD plus MCLR,Vcc, GND.)
If you ... |
Topic: PIC18f45J10 flash programming problem |
tojape
Replies: 7
Views: 8664
|
Forum: General CCS C Discussion Posted: Thu May 24, 2007 1:28 pm Subject: PIC18f45J10 flash programming problem |
As you can see, the comments are '//' , not ';'
Unfortunately, write_flash() doesn't work with 18F45J10, as it was discussed in this forum some two months ago. That's why I have to implement the fun ... |
Topic: PIC18f45J10 flash programming problem |
tojape
Replies: 7
Views: 8664
|
Forum: General CCS C Discussion Posted: Thu May 24, 2007 12:35 pm Subject: PIC18f45J10 flash programming problem |
Hi guys,
The following code results to a flash write to a different location than I expect. Namely I load 0x0400 as the write address and my code writes to 0x0440. I checked every registers displayig ... |
Topic: Built-in assembler missing pseudo operator high & low |
tojape
Replies: 5
Views: 4804
|
Forum: General CCS C Discussion Posted: Mon May 14, 2007 8:13 am Subject: Built-in assembler missing pseudo operator high & low |
Dear ckielstra,
thanks a lot, the solution you suggested works fine.
Heve a nice day,
tojape |
|