• AVR Freaks

Helpful ReplyHot!Code is build and programmed Successfuly but not working in PIC32MX795F512H.

Page: < 12 Showing page 2 of 2
Author
DominusT
Super Member
  • Total Posts : 1460
  • Reward points : 0
  • Joined: 2005/07/22 08:31:18
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/01 08:13:05 (permalink)
0
m_snaeem@hotmail.com
Power is enough up to 500 mA, and the Microcontroller is getting 50 to 60mA.
Every Power pin has a bypass capacitor of 100nF,
PLL is configured in Harmony so no doubt about it what do mean by Clock switching???



I realize you are a newbie with microcontrollers. I recommend this book so that you understand everything that it is about explaining to you. It is old but useful.

https://www.amazon.com/-/...io-Jasio/dp/0750687096
#21
m_snaeem@hotmail.com
Junior Member
  • Total Posts : 105
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/01 08:47:13 (permalink)
0
@DominusT the code i have checked and verified it is correct. The actual problem which i have now realized is PLL is not working. When i use internal or external Oscillator it works but when use PLL it does not work and no frequency at all 
#22
m_snaeem@hotmail.com
Junior Member
  • Total Posts : 105
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/01 09:02:32 (permalink)
4 (1)
@DominusT Thanks for suggestion
yes i have not worked much on microcontroller.
Can you tell me how much voltage should be on VCAP Pin.
It is currently around 1.7Volts. Is this ok???
#23
DominusT
Super Member
  • Total Posts : 1460
  • Reward points : 0
  • Joined: 2005/07/22 08:31:18
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/01 09:58:00 (permalink)
0
m_snaeem@hotmail.com
@DominusT Thanks for suggestion
yes i have not worked much on microcontroller.
Can you tell me how much voltage should be on VCAP Pin.
It is currently around 1.7Volts. Is this ok???


You can find that information in the data sheet.
#24
Memen
Starting Member
  • Total Posts : 44
  • Reward points : 0
  • Joined: 2017/04/08 12:17:32
  • Location: 0
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/01 10:46:17 (permalink)
0
Could be that the wait states are not set properly for the instruction caching. After switching to a higher clock frequency, the number of wait states for the flash storage access (fixed at 30MHz) has to be set accordingly. See Sections 4.2 and 4.3 of the family reference for more info.
 
I have no idea about Harmony and whether it automatically updates the wait states before a clock switch, but you can check if Harmony indeed sets the wait states in the CHECON register.
#25
Antipodean
Super Member
  • Total Posts : 1946
  • Reward points : 0
  • Joined: 2008/12/09 10:19:08
  • Location: Didcot, United Kingdom
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/01 12:35:44 (permalink)

Do not use my alias in your message body when replying, your message will disappear ...

Alan
#26
m_snaeem@hotmail.com
Junior Member
  • Total Posts : 105
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/02 04:18:15 (permalink)
0
I have re-soldered the Pins and PLL worked and the code which I wrote get executed but still it is in the intermittent state sometimes works or sometimes not. Especially when I press the Reset button Current goes from 180mA to 56mA as there are two power LEDs.
#27
DominusT
Super Member
  • Total Posts : 1460
  • Reward points : 0
  • Joined: 2005/07/22 08:31:18
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/02 05:53:16 (permalink)
0
m_snaeem@hotmail.com
I have re-soldered the Pins and PLL worked and the code which I wrote get executed but still it is in the intermittent state sometimes works or sometimes not. Especially when I press the Reset button Current goes from 180mA to 56mA as there are two power LEDs.




If you solder a chip, I recommend buying one of these to verify that each pin is soldered correctly:
 
 
[image]data:image/webp;base64,UklGRmwZAABXRUJQVlA4IGAZAAAQjACdASoVASwBPrFMnkokIiGsJLJMUYgWCekA0i4np1VI+ozWzTC/Mz4zcT/xngl9yc6n+J/1fGv5iagX47/QP9dxAoCP0v+4f8X1ZZ9n2/qB8MBQF8n//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PTG/ref=sr_1_152?__mk_es_US=ÅMÅŽÕÑ&dchild=1&keywords=watchmaker%27s+magnifying+glass&qid=1601642944&sr=8-152
 
 
#28
m_snaeem@hotmail.com
Junior Member
  • Total Posts : 105
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/02 13:43:31 (permalink)
0
My problem has been solved.
Due to inexperience, It seems to me that code is not working after successful programming.
Harmony uses the default frcpll clock so the code did not execute so i thought code is not being executed. Then I change the clock source to FRC, code executes at 8MHz. The code executes as well with an external clock which was also 8Mhz.
So, later I realized also with help on this forum that PLL is not working so I resoldered Microcontroller Pins and refresh the soldering of VCAP and bypass capacitors so PLL starts working. 
So the actual problem was improper bypassing or insufficient power. A small question is what is better to use an 80MHz crystal oscillator or permanently use frcpll hardware to generate 80MHz from 8Mhz?
#29
DominusT
Super Member
  • Total Posts : 1460
  • Reward points : 0
  • Joined: 2005/07/22 08:31:18
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/02 13:49:39 (permalink) ☄ Helpfulby m_snaeem@hotmail.com 2020/10/02 13:51:23
5 (1)
m_snaeem@hotmail.com
My problem has been solved.
Due to inexperience, It seems to me that code is not working after successful programming.
Harmony uses the default frcpll clock so the code did not execute so i thought code is not being executed. Then I change the clock source to FRC, code executes at 8MHz. The code executes as well with an external clock which was also 8Mhz.
So, later I realized also with help on this forum that PLL is not working so I resoldered Microcontroller Pins and refresh the soldering of VCAP and bypass capacitors so PLL starts working. 
So the actual problem was improper bypassing or insufficient power. A small question is what is better to use an 80MHz crystal oscillator or permanently use frcpll hardware to generate 80MHz from 8Mhz?


If you use a high frequency crystal, it seems to me that there may be more electrical noise problems towards the outside and stability problems, that is why it is better to use an external low frequency crystal and inside the MCU use the PLL to get a frequency higher.
#30
m_snaeem@hotmail.com
Junior Member
  • Total Posts : 105
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/02 13:52:43 (permalink)
0
Thanks DominusT for your help..........!
#31
NorthGuy
Super Member
  • Total Posts : 6407
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/02 13:55:00 (permalink) ☄ Helpfulby m_snaeem@hotmail.com 2020/10/02 13:57:05
5 (2)
m_snaeem@hotmail.com
So the actual problem was improper bypassing or insufficient power. A small question is what is better to use an 80MHz crystal oscillator or permanently use frcpll hardware to generate 80MHz from 8Mhz?

 
Normally you would use FRC with PLL unless FRC is not accurate enough. Using FRC is better because it doesn't cost you anything and is less likely to fail.
 
If you do need better accuracy, you must use a crystal, or better MEMS oscillator. When choosing frequency, look at the datasheet. 80 MHz input may not be supported. Then, to get 80 MHz, you need slower crystal/oscillator with PLL.
#32
DominusT
Super Member
  • Total Posts : 1460
  • Reward points : 0
  • Joined: 2005/07/22 08:31:18
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/02 13:58:26 (permalink)
0
NorthGuy
m_snaeem@hotmail.com
So the actual problem was improper bypassing or insufficient power. A small question is what is better to use an 80MHz crystal oscillator or permanently use frcpll hardware to generate 80MHz from 8Mhz?

 
Normally you would use FRC with PLL unless FRC is not accurate enough. Using FRC is better because it doesn't cost you anything and is less likely to fail.
 
If you do need better accuracy, you must use a crystal, or better MEMS oscillator. When choosing frequency, look at the datasheet. 80 MHz input may not be supported. Then, to get 80 MHz, you need slower crystal/oscillator with PLL.


Data sheet, TABLE 32-17: EXTERNAL CLOCK TIMING REQUIREMENTS 
#33
henkebenke
Senior Member
  • Total Posts : 77
  • Reward points : 0
  • Joined: 2008/09/27 23:55:51
  • Location: 0
  • Status: offline
Re: Code is build and programmed Successfuly but not working in PIC32MX795F512H. 2020/10/14 19:40:55 (permalink)
0
About successful soldering of MCU's.  There are a lot of videos on Youtube where people demonstrates how easy it is, and how to do it properly, but they all forget to mention what is really important.
Namely, the pins must be soaked in flux - preferably tacky flux.  If so, it's more or less impossible to fail. For some reason the flux seems to increase the surface tension so the solder sticks to the metal. If( or when , rather ) there are shorts, some desoldering wick will help. 
 
Another tip someone may find useful. Good sight is of essence. An alternative to looking glasses is to buy cheap reading glasses, and stack several on your nose. I'm using two +4 reading glasses, taped together, and it works just fine. Cost; around $3. It's like a tiny microscope on your nose.
#34
Page: < 12 Showing page 2 of 2
Jump to:
© 2020 APG vNext Commercial Version 4.5