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 20 matches
CCS Forum Index
Author Message
  Topic: Does SD Card library work on PIC24?
hssn601

Replies: 7
Views: 10689

PostForum: General CCS C Discussion   Posted: Wed Jul 23, 2014 3:42 am   Subject: Does SD Card library work on PIC24?
yes it works for !

I have tested SD and SDHC cards 2~16gb on PIC24f and dsPIC33E

for initialization use:

/*********************
Function: InitializeSD()
Return 1 if success
Return 0 if ...
  Topic: MMCSD with capacity > 2gb PIC24
hssn601

Replies: 4
Views: 9919

PostForum: General CCS C Discussion   Posted: Mon Jun 23, 2014 12:55 am   Subject: MMCSD with capacity > 2gb PIC24
Solution.

http://www.ccsinfo.com/forum/viewtopic.php?t=52490 Smile
  Topic: SDHC driver for CCS **free**
hssn601

Replies: 1
Views: 38361

PostForum: Code Library   Posted: Tue Jun 10, 2014 4:50 am   Subject: SDHC driver for CCS **free**
This code require mmcsd.c for read and write operations.

********
Tested SD cards
2,4,8,16 gb
********
you only have to call InitializeSD() instead of mmcsd_init()

InitializeSD =1 if success ...
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Wed May 07, 2014 1:01 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
Look at the timeout option in #use rs232
There may well be better ways of handling things, but this is a start.



thanks solved my problem.
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Tue May 06, 2014 5:49 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
i only want to read values of some registers so i have written my own program.

the problem is that sometimes it stuck on fgetc() may be because nothing is comming from port .



i am using soft ...
  Topic: Simple question about software UART interrupt
hssn601

Replies: 3
Views: 6576

PostForum: General CCS C Discussion   Posted: Fri May 02, 2014 1:57 am   Subject: Simple question about software UART interrupt
I am trying to us a software UART on PIC24FJ64GA004 and wants to receive data when available but i am unable to find any interrupt for software serial port.
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Thu Apr 24, 2014 8:20 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
I'm not an expert but I suggest you test with a simple setup.
Let modbus library use hardware UART.
Use ASCII mode and if you can, use another 485 receiver and a PC to see whats going on the bus.
...
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Thu Apr 24, 2014 8:19 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
Yes what Ttelmah means it should be defined as 19200 and not 9600.

Regards


on energy meter i have changed it to 9600
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Thu Apr 24, 2014 7:47 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
#define MODBUS_SERIAL_BAUD 9600

default baud on your device, is 19200....

dear its already defined see system.h
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Thu Apr 24, 2014 1:50 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
i am using MAX3843 to use 485
here is schematic
...
and in code i have defined in this way

#define MODBUS_SERIAL_ENABLE_PIN PIN_B12 // Controls DE pin for RS485
#define ...
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Wed Apr 23, 2014 6:10 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
i am using MAX3843 to use 485

here is schematic

http://s15.postimg.org/y5hecn163/screenshot_22.png#define MODBUS_SERIAL_ENABLE_PIN PIN_B12 // Controls DE pin for RS485
# ...
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Wed Apr 23, 2014 5:02 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
I get those warning too. I don't know exactly what problems they might cause, but my circuit works.
BTW, I use hardware UART and I don't know if that makes a difference.

hmm ok i'll try it on real ...
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Wed Apr 23, 2014 5:00 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
Even though I don't use Modbus, I'd suggest you code a complete program, using the CCS supplied example as a 'template'.
While your incomplete code 'snippet' might look OK to some,unless a complete, ...
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Wed Apr 23, 2014 4:46 am   Subject: My code
I have made the following code to read register values but i am getting

Warnings:

#include <24FJ64GA004.h>

#include "system.h"
#include <float.h>
#include <math.h& ...
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
hssn601

Replies: 23
Views: 28446

PostForum: General CCS C Discussion   Posted: Tue Apr 22, 2014 11:52 pm   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
It's easy. Use function "modbus_read_holding_registers". To make it simple, read only one register.
modbus_read_holding_registers(unsigned int8 address, unsigned int16 start_address, unsign ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group