caramoan tour package

caramoan tour package

Author Topic: RESET pin question?  (Read 1361 times)

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6028
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
RESET pin question?
« on: September 29, 2008, 08:05:09 PM »
naisip ko lang habang naliligo ako... pwede ko bang gamitin as one of the regular switches ang reset pin. healthy ba ito sa part ng MCU...?
naisip ko kasi, for instance may code ka na ganito:

Code: [Select]
while(1){
   if (input(pin_a0))
      output_high(pin_a1);
}

syemre di na yan titigil...
what if gamitin ko in regular basis ang reset pin kasi kunyari yan lang ang code ko? pwede ba yun? healthy ba...?
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Philippine Electronics Forum

RESET pin question?
« on: September 29, 2008, 08:05:09 PM »

Offline Nat-O

  • CR2032 Battery
  • **
  • Posts: 37
  • Pogi/Ganda Points: 0
Re: RESET pin question?
« Reply #1 on: September 29, 2008, 09:43:58 PM »
Hindi... Bakit ang reset pin pa naisip mong gamitin? ang reset pin ay reset pin lang talaga.

Philippine Electronics Forum

Re: RESET pin question?
« Reply #1 on: September 29, 2008, 09:43:58 PM »

Offline 0b00000111

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6130
  • Pogi/Ganda Points: 398
  • There is no delight in owning anything unshared.
Re: RESET pin question?
« Reply #2 on: September 29, 2008, 10:02:28 PM »
di ako sure kung naintindihan ko ang tanong mo ate marce ;D ;D gusto mong gamitin ang reset pin para maging tristate pin?
E-Gizmo Mechatronix Central: www.e-gizmo.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  ;D

Philippine Electronics Forum

Re: RESET pin question?
« Reply #2 on: September 29, 2008, 10:02:28 PM »

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6028
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: RESET pin question?
« Reply #3 on: September 30, 2008, 01:25:57 AM »
sorry, umaga na yung reply ko.
ganito kasi, naiisip ko lang. kunwari simpleng switch ko lang gagamitin ang pic sa simpleng switch na din.
pagnatrip ang switch di syempre dapat may reaction ang circuit. for intance iilaw or buzzer. after that,one way of resetting the program is to reset(using mclr), di ba? (kunyari ganun lang ang program)

ang tanong ko, ok lang ba sa MCU kung gagamitin kong switch ang reset para marestore ang nag-aabang na switch.

para malinaw eto ang circuit.

tapos ang program ko, ganito:
Code: [Select]
#include <16F84.h>

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES HS                       //Crystal osc <= 4mhz for PCM/PCH , 3mhz to 10 mhz for PCD
#FUSES PUT                      //Power Up Timer
#FUSES NOPROTECT                //Code not protected from reading

#use delay(clock=8000000)

void main()
{
   while(true){
        if(input(pin_a0))   output_high(pin_b7);   
}

ano ang comment nyo nyan?

ang tanong ko actually, ok lang ba in regular basis, gagamitin ko ang reset (mclr pin) to remove the logics inside the MCU?


@layad, bakit hindi? whereas it serves the the logic and function.. what will happen if i regularly use that scheme?
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Philippine Electronics Forum

Re: RESET pin question?
« Reply #3 on: September 30, 2008, 01:25:57 AM »

Offline underprezzure

  • Lead Acid Battery
  • *******
  • Posts: 913
  • Pogi/Ganda Points: 44
  • Gender: Male
  • Destroyer! Web Crawler! Buster! Babaylan!
    • www.instructables.com
Re: RESET pin question?
« Reply #4 on: September 30, 2008, 02:10:38 AM »
naisip ko lang habang naliligo ako... pwede ko bang gamitin as one of the regular switches ang reset pin. healthy ba ito sa part ng MCU...?
At any point puwede mong gamitin ang reset PIN ng MCU. Ganito lang naman yan eh. Kahit saan nakaturo ang program pointer mo whenever you insert a call for the MCLR reset ay babalik lang sa simula ng program mo ang program pointer, in other words, uulit lang ang program mo from where it starts.

-underpazz campaigns for more technical post on technical threads
-underpazz campaigns for "no hijack policy" on technical sections
I am not reinventing the wheel, I am just making a difference.
Follow Forum Rules and Regulations
Search the forum before posting
Zero tolerance on spam
Stop thread hijack

Philippine Electronics Forum

Re: RESET pin question?
« Reply #4 on: September 30, 2008, 02:10:38 AM »

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6028
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: RESET pin question?
« Reply #5 on: September 30, 2008, 10:03:11 AM »
At any point puwede mong gamitin ang reset PIN ng MCU. Ganito lang naman yan eh. Kahit saan nakaturo ang program pointer mo whenever you insert a call for the MCLR reset ay babalik lang sa simula ng program mo ang program pointer, in other words, uulit lang ang program mo from where it starts.

-underpazz campaigns for more technical post on technical threads
-underpazz campaigns for "no hijack policy" on technical sections


ganun pala yun...
salamat ng marami.;D
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10767
  • Pogi/Ganda Points: 636
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: RESET pin question?
« Reply #6 on: September 30, 2008, 08:26:20 PM »
yup ok lang 'yun. parang mga gaming consoles 'yan tulad ng Family Computer, nakakabit ang reset. ;D kung meron kang gustong gawin kapag nag-reset, doon ilalagay sa bago mag-infinite loop. meron ding mga MCU na pwede mong i-check kung ano ang source ng reset kaya pwede mo ring gawan sa program ng conditional statement.

other MCU's have NMI (Non-Maskable Interrupt) on reset pins. may pupuntahang Interrupt tapos hindi niya buburahin lahat ng laman ng memory. kaya pwede na talagang gamitin as input 'yung reset.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6028
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: RESET pin question?
« Reply #7 on: October 01, 2008, 11:17:04 PM »
yup ok lang 'yun. parang mga gaming consoles 'yan tulad ng Family Computer, nakakabit ang reset. ;D kung meron kang gustong gawin kapag nag-reset, doon ilalagay sa bago mag-infinite loop. meron ding mga MCU na pwede mong i-check kung ano ang source ng reset kaya pwede mo ring gawan sa program ng conditional statement.

other MCU's have NMI (Non-Maskable Interrupt) on reset pins. may pupuntahang Interrupt tapos hindi niya buburahin lahat ng laman ng memory. kaya pwede na talagang gamitin as input 'yung reset.

family computer? ano yan? heheheh ;D
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10767
  • Pogi/Ganda Points: 636
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: RESET pin question?
« Reply #8 on: October 01, 2008, 11:17:39 PM »
hehehe. ;D
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6028
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: RESET pin question?
« Reply #9 on: October 02, 2008, 01:56:06 AM »
hehehe. ;D

salamat for the realization. minsan kasi ginamit ko yan, pero may doubt ako kaya yan, di ko na ginamit.
tnx.:)
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6028
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: RESET pin question?
« Reply #10 on: October 02, 2008, 08:53:36 PM »
in connection with this... bakit ganun?
sa actual, kahit di ko pa inoON ang PIN_A0, palagi nang nakaON ang PIN_B7...
may namimiss ba ako sa hardware part?

halos ganyan din ang circuit ko. kailangan ko yung signal ng B7 pang drive ng relay... i used a single transistor driver.
katulad ng relay part ng circuit nito: http://www.olimex.com/dev/pdf/PIC/PIC-IO.pdf
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Philippine Electronics Forum

Re: RESET pin question?
« Reply #10 on: October 02, 2008, 08:53:36 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com