Device configuration

(instructions, reset, WDT, specifications...) PIC17Cxx, PIC18Fxxx

Re: Device configuration

Postby Tom Maier » Thu Jul 31, 2014 3:22 pm

Most people are unaware of the games they are playing and they learned them in early life, normally from family interactions or childhood friends. Some are good and some lead to trouble. For example, schlemazel is a good game that van lead to a person becoming a teacher or social worker.

Knowing that these games are happening allows a person the ability to duck out when things get out of hand.
User avatar
Tom Maier
Verified identity
 
Posts: 179
Joined: Mon May 26, 2014 2:37 pm
PIC experience: Professional 5+ years with MCHP products

Re: Device configuration

Postby Tom Maier » Thu Jul 31, 2014 3:42 pm

When you try to halt a person's game and they know they were playing it, they will normally just smile and switch games.

When you halt a person's game and they don't know they were playing a game, then two things are likely to happen. If the person has a mellow personality, they will go silent and just be confused while they try to figure it out. If they have an aggressive personality they might attack you, verbally or physically.

When a person beomes aware they were playing a game they might have some confusion about how to interact with people, because they have always used that game previously, but now they are at a loss to know how to interact without it. They don't know any other social interaction games. Sometimes that leads to a short period of depression while they sort it out.
User avatar
Tom Maier
Verified identity
 
Posts: 179
Joined: Mon May 26, 2014 2:37 pm
PIC experience: Professional 5+ years with MCHP products

Re: Device configuration

Postby Dimebag » Thu Jul 31, 2014 5:31 pm

Up to you there Tom. I hope you discover some new matter. All the best.
regards,
Dimebag
 
Posts: 109
Joined: Sun Jun 29, 2014 7:51 am
Location: Sydney, Australia

Re: Device configuration

Postby Tom Maier » Thu Jul 31, 2014 5:48 pm

New matter...

http://www.ericberne.com/games-people-play/good-games/

best regards to you also.
User avatar
Tom Maier
Verified identity
 
Posts: 179
Joined: Mon May 26, 2014 2:37 pm
PIC experience: Professional 5+ years with MCHP products

Re: Device configuration

Postby Dimebag » Sat Aug 02, 2014 12:40 pm

I solved the __delay_ms marco after reading the manual several times.
Code: Select all
#include <xc.h>
#define _XTAL_FREQ 20000000

//Configurations and Fuses
#pragma config  OSC = HS, OSCS = OFF,PWRT = ON,BOR = OFF
#pragma config  BORV = 45,WDT = OFF,WDTPS = 1,CCP2MUX = OFF
#pragma config  STVR = OFF,LVP = OFF,DEBUG = OFF
#pragma config  CP0 = OFF,CP1 = OFF,CP2 = OFF,CP3 = OFF,CPB = OFF,CPD = OFF
#pragma config WRT0 = OFF,WRT1 = OFF,WRT2 = OFF,WRT3 = OFF,WRTB = OFF,WRTC = OFF,WRTD = OFF
#pragma config EBTR0 = OFF,EBTR1 = OFF,EBTR2 = OFF,EBTR3 = OFF,EBTRB = OFF

void Initialization(void) {
    LATA = 0x00;
    LATB = 0X00;
    LATC = 0X00;
    LATD = 0X00;
    LATE = 0X00;

    TRISA = 0x00;
    TRISB = 0x00;
    TRISC = 0x00;
    TRISD = 0x00;
    TRISE = 0x00;

    PORTA = 0x00;
    PORTB = 0x00;
    PORTC = 0x00;
    PORTD = 0x00;
    PORTE = 0x00;
}
void main(void) {

    Initialization(); //Set all device pins.


    while (1) {
       __delay_ms(10);
        PORTD = 0x01; // array[0];
      __delay_ms(10);
        PORTD = 0x00;
    }
}
 
Dimebag
 
Posts: 109
Joined: Sun Jun 29, 2014 7:51 am
Location: Sydney, Australia

Re: Device configuration

Postby Dimebag » Sat Aug 02, 2014 1:51 pm

I wasn't trying to be a "game player" Tom. I am just new to this C complier and I am still looking for a debugger/programmer package from microchipDirect. Any suggestions?

I am thinking of PICkit2/3. I am still looking for a board that supplies a wide range of PORTxxx to use. Sorry if I wasn't listening to you and Rick, I really am trying to work out programming between reading manuals and datasheets, release notes, other forums, google, etc.
Dimebag
 
Posts: 109
Joined: Sun Jun 29, 2014 7:51 am
Location: Sydney, Australia

Re: Device configuration

Postby Tom Maier » Sat Aug 02, 2014 3:08 pm

Well, let's see here...

You took Ric's code and threw in some bugs. Then you claimed to have figured it out by yourself. That's called a schlemiel. Can you see that?

Your next post you apologize in advance for the expected outrage from Ric.

Nope... I don't think you are ready yet. You are still in the denial stage.

You might want to give up embedded and move to a social or political forum, where the schlemiel game is more acceptable. It doesn't fit well here.
User avatar
Tom Maier
Verified identity
 
Posts: 179
Joined: Mon May 26, 2014 2:37 pm
PIC experience: Professional 5+ years with MCHP products

Re: Device configuration

Postby Dimebag » Sat Aug 02, 2014 4:07 pm

Tom, I am not able to gather the information quickly. I said in posts that I need to do research in these topics. I might have time management issues, but listening to other people isn't one of them. Trying to understand a new concept to some maybe easy. I never tried to be disrespectful to anyone.
Dimebag
 
Posts: 109
Joined: Sun Jun 29, 2014 7:51 am
Location: Sydney, Australia

Re: Device configuration

Postby Tom Maier » Sat Aug 02, 2014 4:21 pm

More denials and apologies...

You've used up all the schlemazels on this forum. You might want to move on to the official microchip website to continue the game. The larger population there will give you more fruitful hunting grounds.

Watchout for a guy called Mbedder, he eats schlemiels for breakfast.

If you can figure out what is happening, you will learn the ability to turn the game on and off at will. Schelmiel is really a handy game to know when you are trying to defeat an enemy. You are playing it continuously against everybody, and that is why you are getting negative reactions.

Research is needed...
User avatar
Tom Maier
Verified identity
 
Posts: 179
Joined: Mon May 26, 2014 2:37 pm
PIC experience: Professional 5+ years with MCHP products

Re: Device configuration

Postby Dimebag » Sat Aug 02, 2014 5:54 pm

Doing as told, read the device datasheet. I am also reading the manual for mplabx #include <xc.h> and its other #include <?> as well. I am not meant to know about how this mplabx complier works before I start using it. Sorry Guru.
Dimebag
 
Posts: 109
Joined: Sun Jun 29, 2014 7:51 am
Location: Sydney, Australia

PreviousNext

Return to 16-Bit Core

Who is online

Users browsing this forum: No registered users and 5 guests

cron