• AVR Freaks

AnsweredHot!Timer0 16 bits

Page: < 12345 Showing page 5 of 5
Author
Jim Nickerson
User 452
  • Total Posts : 6725
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: Timer0 16 bits 2020/03/07 09:19:56 (permalink)
+1 (1)
the page for this pic has a development environment tab listing thee available tools https://www.microchip.com/wwwproducts/en/PIC18F25K42
#81
1and0
Access is Denied
  • Total Posts : 11000
  • Reward points : 0
  • Joined: 2007/05/06 12:03:20
  • Location: Harry's Gray Matter
  • Status: offline
Re: Timer0 16 bits 2020/03/07 12:33:11 (permalink)
+2 (2)
GeorgePauley's Post 25
Yep, it's a bug. It is fixed now and will be available in MPLAB X 5.35.

1and0's Post #34
I just spent a short time with the PIC18F25K42 Timer0 simulator of the latest MPLAB X v5.30 and already found the following bugs:
  • the high byte of Timer0 is not updated with the contents of TMR0H when a write occurs to TMR0L,
  • TMR0H is not updated with the contents of the high byte of Timer0 during a read of TMR0L,
  • when TMR0L is read, the Timer0 does not increment for one instruction cycle,
  • when TMR0L is written, the Timer0 decrements three instruction cycles -- WTF!
  • TMR0_Internal and TMR0_Prescale pseudo registers do not work,

I just spent a short time with the PIC18F25K42 Timer0 simulator of the latest MPLAB X v5.35:
  • fixed -- the high byte of Timer0 is not updated with the contents of TMR0H when a write occurs to TMR0L,
  • fixed -- TMR0H is not updated with the contents of the high byte of Timer0 during a read of TMR0L,
  • still does not work -- when TMR0L is read, the Timer0 does not increment for one instruction cycle,
  • fixed -- when TMR0L is written, the Timer0 decrements three instruction cycles -- WTF!
  • still does not work -- TMR0_Internal and TMR0_Prescale pseudo registers do not work,
#82
Chabb
Starting Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2019/11/14 10:16:01
  • Location: 0
  • Status: offline
Re: Timer0 16 bits 2020/03/08 02:27:55 (permalink)
+1 (1)
Thank Jim Nickerson. I need only a tool to Write hex file (in my PC) into Pic 18f25k42 28 pins sdip
is a pickit usable?
post edited by Chabb - 2020/03/08 03:34:57
#83
ric
Super Member
  • Total Posts : 28024
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: Timer0 16 bits 2020/03/08 02:50:58 (permalink)
+1 (1)
Chabb
Thank Jim Nickerson. I need only a tool to Write hex file (in my PC) into Pic 18f25k42 28 pins sdip

And I count four options on the page Jim pointed you to.
Click on the "Development Environment" tab, as he mentioned,
then click on "Programmers".
You should see:
  • MPLAB PICkit 4 In-Circuit Debugger ( PG164140 )
  • MPLAB ICD 4 In-Circuit Debugger ( DV164045 )
  • MPLAB PM3 Universal Device Programmer ( DV007004 )
  • MPLAB(R) Snap In-Circuit Debugger ( PG164100 )
Only the PM3 supports programming the chip standalone (but that is a very expensive option)
The other three are designed for ICSP (In Circuit Serial Programming), so they require you to allow the programmer to connect to the PIC on your own board.
That means the PIC package is irrelevant, you just need to allow the programmer to be connected.
That is via a 5/6 pin SIL connector for PK4 and Snap, or an RJ12 modular socket for the ICD4.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#84
Chabb
Starting Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2019/11/14 10:16:01
  • Location: 0
  • Status: offline
Re: Timer0 16 bits 2020/03/26 10:27:11 (permalink)
0
Howard Long write in november 20 2019 :
<The cost of a handful of test devices is $5, equivalent to a few minutes' consultancy time.>
Please what is this test device for $5 ?
#85
1and0
Access is Denied
  • Total Posts : 11000
  • Reward points : 0
  • Joined: 2007/05/06 12:03:20
  • Location: Harry's Gray Matter
  • Status: offline
Re: Timer0 16 bits 2020/03/26 11:11:18 (permalink)
+2 (2)
Chabb
Howard Long write in november 20 2019 :
<The cost of a handful of test devices is $5, equivalent to a few minutes' consultancy time.>
Please what is this test device for $5 ?

I think he meant to say to buy some real PIC devices and test with the real chip instead of using the Simulator. ;)
 
#86
Chabb
Starting Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2019/11/14 10:16:01
  • Location: 0
  • Status: offline
Re: Timer0 16 bits 2020/03/28 03:31:43 (permalink)
0
thank you 1and0. The cost of a Pic18F25K42 is $1.15 the developpement tool Mplabx is free;
But at the end there is a surprise: To write hex file into the Pic I have to spend about $100 in
special material and cable and connector...
it is too much expensive for a material used only one time. best regards.
#87
Page: < 12345 Showing page 5 of 5
Jump to:
© 2020 APG vNext Commercial Version 4.5