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

CCS (MPLAB) PIC10F320 – LED BLINKING in C language
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
viki2000



Joined: 08 May 2013
Posts: 233

View user's profile Send private message

PostPosted: Thu Jun 06, 2013 5:14 am     Reply with quote

The official answer from Microchip that I received:

"
Hi,
I think you are using the A1 version of PIC10f320.
The engineering versions (A1) had this issue. Version A2 (production released version) does have the correct bytes of RAM.
The datasheet is not wrong. The released version of the PIC10F320 has 64bytes of RAM.
Production was released at revision A2 which has the correct memory mapping.

For more details please refer known issues listed under "MPLAB IDE current release notes" in the following link:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469

Please see the description of issue UDBC-517

Thanks,

Compiler Analysis and Assistance Team

"

and another user on Microchip forum (named tunes) received a similar answer:


Yes, Device ID Revision = 1 indicates its A1 revision. A1 revision of chip was engineering sample and not one which was taken into production.

Data sheet is incorrect for PIC10(L)F320 A1 revision, which were only released as engineering samples.

Production was released at revision A2 which has the correct memory mapping per the data sheet.

You can find this under known issues listed under "MPLAB IDE current release notes" in the following link:
http://www.microchip.com/...&dDocName=en019469

After unzipping the compressed files, you can refer to UDBC-517 in MPLAB IDE release notes where this is listed.



And here's what UDBC-517 says:


Data sheet is incorrect for PIC10(L)F320 A1 revision, which were only released as engineering samples. Production was released at revision A2 which has the correct memory mapping per the data sheet.


for your reference next topic on Microchip forum: http://www.microchip.com/forums/m727073.aspx
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Jun 06, 2013 10:44 am     Reply with quote

Quote:
The header debugger for PIC10F320 is this one:
http://www.microchipdirect.com/ProductSearch.aspx?keywords=AC244045

I bought it last week and I used it also today. Works only in MPLAB, MPLABX with program written in ASM or HITECH or XC8.

I received today ICD-U64 programmer and works inside the CCS IDE only to burn PIC10F320. You cannot debug with it.

Seems that regarding PIC10F320/322 debugging I am stuck with MPLAB and HITECH compiler using the above header debugger.


Thanks for clarifying about debug header. I still don't know what's the point that debugging CCS code
in MPLAB shouldn't work with this processor. I used it e.g. with 12F683 debug header.
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

PostPosted: Fri Jun 07, 2013 6:32 am     Reply with quote

Note this from the release notes to the latest CCS complier, 5.006 now out of beta and in full release:

Quote:

Recent changes include:
5.006 Corrected incorrect RAM registers for PIC10F/LF320
viki2000



Joined: 08 May 2013
Posts: 233

View user's profile Send private message

PostPosted: Fri Jun 07, 2013 8:10 am     Reply with quote

But that is a problem.
The compiler should be able to detect or to let you manually set somehow the Revision type 1 or 2 of PIC10F320.

For PIC10F320 Rev 2, the compiler is good as it was, nothing needs to be corrected.

What do you think?
viki2000



Joined: 08 May 2013
Posts: 233

View user's profile Send private message

PostPosted: Thu Jun 13, 2013 1:12 am     Reply with quote

@FvM

If you are interested how to use Debug Header for PIC10F320/PIC10F322 then check out next topic (please read to the end for clarifications):
http://www.microchip.com/forums/m728301.aspx
Ttelmah



Joined: 11 Mar 2010
Posts: 20161

View user's profile Send private message

PostPosted: Thu Jun 13, 2013 8:06 am     Reply with quote

Seriously, that is the standard way to use all such headers, when they involve an extended chip. It is in the manual that comes with it. The point is that they don't actually use a 10F320, they use an extended core (with a different device ID), and the extra pins, that just happens to behave the same. So 'of course' you have to remove the chip in the board, since it doesn't actually support debugging.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group