Search This Blog

Wednesday, December 29, 2021

Marcus and Sophie Engagement Party

 Marcus and Sophie recently announced their engagement and had a engagement party.








Monday, December 27, 2021

Endoscope

 I bought an Endoscope camera of Ebay.

Problem is Google have blocked USB camera apps from the play store.  This will force me to go off market.  Google say this is because some 3rd party apps were collecting location data.  This is the pot calling the kettle black.  And of course creates a much larger security risk.

Anyway to verify if it works, I plugged it into my PC.  Win10.

It says "unrecognised USB device"


eBay item number:
384274529478

67 degrees



Got it to work.

Unfortunately for poking around in the back of the captiva fuse box, I need a much wider angle lens

Need more than 67 degree viewing angle




Boxing Day

 A wonderful surprise.  

I was making bacon and eggs + Pancakes for Marcus and Sophie when Chris and Dan arrive.  Shortly thereafter, Jemma and Mackenzie.

 



Luckily I had bought a new carton of eggs and a reasonable number of rashes of bacon.

After breakfast we all went in the Captiva to see Macbeth. Now that was a bit weird.  I need to get the notes of the story line.  I enjoyed it.  The dialogue was very hard to understand.  The sets were kind of early 70's start minimalist.  It's a square picture and B&W.

 

 

 

 

Saturday, December 25, 2021

Christmas Day

Tough day Christmas. 
The front face of Christmas is family.
The Christian back story (not forgetting there were festivals pre )
Is to celebrate the birth of Christ.

Following the birth, we've the life of Christ, the creation and growth of the Christian church and all that goes with it. 

All that goes with it....

Started the day looking on Google maps for Christmas service times. Amazing how many churches don't put their service times on google and that don't add in the special occasions.  
 
Settled on Toowong UC.  


Church @ Toowong UC.

Nice light bright service. 
One highlight for me was a bible reading on video by a young girl who had memorised the entire contents of Luke Chap 1 & 2 and recited Chap 2 for us.


We sang "silent night".
At first cut my mind pictures a small clean crib complete with crocheted blanket and a mobile hanging from the ceiling and a baby monitor. But when one actually thinks....
A manger was a feeding trough.
https://en.m.wikipedia.org/wiki/Manger
It would have have animal drool on it and the room would stink! animal poo nearby.
Mary had a baby in that room....
Did they even have scissors to cut the umbilical chord?
 
It's so easy to get modern lovey dovey mental images of the birth of Christ.  You know those nice clean idealised nativity scenes.

Mary's magnificat- first Christmas song?

CHRISTMAS FAMILY LUNCH
Was at Megan's place (Thallon St).  I was allocated to bring red wine and a Christmas Pudding

Lets digress a little here, On Wednesday, Megan asked and I accepted to bring a Christmas Pudding.  On Thursday, I set out in search of it.  I was at Woolies at Oxley and entered "Christmas Pudding" into the Woolies App.  It listed lots but had "Unavailable" shown for each.  OK me thinks and has a look at Coles Corinda and although no locations shown, there was no 'out of stock' message so I took myself to Coles and asked at the counter and they said they were out of stock.  I guess Coles can't be honest and clear enough to confess when out of stock.  I looked on Woolies Sherwood and they had a pudding marked down from $7 to $5.  Ahh what luck I thought.  When I arrived though and found the pudding it was 100g.  That's tiny.  Like half a cup size.  Gave up and went home.  Messaged Megan and she responded suggesting I ask facebook.  Friday - That paid dividends with a suggestion of the Yeronga RSL.  They had proper sized ones for $5.  Tick!

Back to Christmas lunch,  Scheduled to begin at 12:30 so I hold off until close to that time.  I feel quite awkward.  The burning pain of rejection still smoldering.  Having to smile and pretend everything is normal is energy sapping.  Even offering to help in menial ways like loading the dishwasher is risky as I will be called out for not doing it right.
 
So I smiled and nodded and tried hard to participate pleasantly.  The food was beautiful.  Ham, Roast lamb, lots of vegies and salad.  Marcus and Soph had helped out on Friday making a egg plant thingo.
 
 


 
 

After main course, we sat round and did "secret Santa" although as the presents were handed out it was pretty obvious who had bought for whom.  All the presents seemed appreciated.


After the secret santa, we reconvened for dessert.
After dessert was a game of ...?  You draw pictures and interpret other peoples pictures.

In the evening, Marcus and Soph came back to my place.  Marcus and I watched half a movie called "don't look up".  It was C.R.A.P.  It had lots of big name stars but the script writing was terrible.  About half way through, we gave up.  yesterday I watched the last 3 minutes and the ending was crap too.  I think they tried to make a sarcastic comedy taking the piss out of the American planet destroyed by comet movies but failed miserably.

And that was Christmas day over for another year.

I know in my mind it's not logical or mentally healthy but I get depressed thinking about the marriage.  24 years and 11 months.  Wasted.  the last 10 years of incredible loneliness.  Megan was busy busy fookin busy with all her good works.  I tried so hard to be good and of course would fail and she'd remind me of those continual failures.  I remember that various people would tell me that their ex would have nothing to do with them or the kids and I interpreted this as the distant ex being un supportive.  I now know there is another alternative story line and that is that the emotional devastation brought on by having contact.  The reminder of what could have been but now will never be.  Makes me, for my own mental preservation, just go. Go away. Far away.  I want the contact.  At the same time I cry over the loss of something I held so close to my heart.
















Friday, December 24, 2021

Christmas eve dinner

Christmas Eve dinner

Marcus & Soph, Chris and Kenzie, Dan, Jemma.



Was nice to have everyone together.  

PLAN
Prawns
Baked fish, Potato Bake, Wombok Salad.
Mangoes, Cherries, blueberres, cream.

BAKED FISH
Thank you to Chris for help here.
Bought Sea Perch (I think).
laid the fillets of fish in the pyrex dish. 
They half overlapped in order to fit in.
Put slices of butter and garlic and
laid pieces of asparagus and broccolini.
Covered with alfoil.
Bottom shelf in Oven.   

Learnings:
Should have put the garlic and the butter in a cup, melted in microwave and mixed before pouring over the rest of the assembly.
Laying the fish partly on each other made it a bit hard to separate.  Not sure what to do about this.   I wonder if we could place something between the fish?

POTATO BAKE





Learning 1:  The pyrex dish did not fit the microwave.  Even though the microwave claims to be "wide"





Oreo did not think much of the garlic flavoured fish.


Tuesday, December 21, 2021

2021 Christmas Card

 This years Christmas card features a dawn light on the front and family shots on the back.

I received a very nice welcome card from some people in the street so I figured I would put cards in the neighbours letter boxes.

I do it on Word.

To fit in a DL envelope, the mid point is 10cm with the pictures 9.5cm.

 

Paper was an issue. I thought I had run out. Went to officeworks. I had forgotten what "weight". At officworks figured it was probably 250gsm but the choice was limited and expensive. I bought a pack of Kodak 240 and a pack of 250 sheets of Jburrows 200gsm. Beautiful and glossy but too thin. Then I found the 250g pack of JBurrows 250gsm. It had been put in a different cupboard at work. Definitely has to be 250. 200 is too thin and greater than 250 would be too hard to fold.


 

 

Chris Dan Jemma Came to Dinner

 Was nice.  Chris Jan & Jemma came to dinner.

Lamb chops, Corn on cob, Wombok salad.

Jem stayed overnight then off at the crack of dawn to go rowing.

Ths morning, I put Christmas cards in the neighbours mail boxes.

Monday, December 20, 2021

Tidda and Captiva oil Change

DEXUS
The Captiva manual specified 5W30 but with this tag called Dexus2.  See below.

HOW TO

My photos below.
https://www.youtube.com/watch?v=oaPE9QTm650

 SHOPPING
ended up just going to A1 Auto Parts at Goodna.  3818 1812  The reason being that their oil seemed to be slightly lower cost than the three big chains.  When we were there it was way easier.  Go to the counter and ask.  I find at Superchap etc that I spend ages scanning the shelves looking for the part. 


Tiida
Captiva


Petrol
Diesel

Oil Spec
5W30
5W30 Dexus2

Super Cheap Auto
4.3L $47.59
?5.6 or 7L? $87.49

Autobarn
5L $67.99
Fusion $39.99
7L $87.99

A1 Autparts
Goona

5L $69.99
7L $79.99


Repco
5L $39
5L  $67

OIL FILTER

WC0154 
Repco R2736P

Supercheap

Transgold $17.99
Ryco $27.99

Autobarn

Cooper $23.99
Ryco  $28.99

A1 Auto Parts



Repco

Pro Select $7
Ryco $29
Repco $23

Manual  Page

241

 

PETROL v DIESEL

Both Nissan and Captiva say 5W30 BUT Is there a difference between engine oil for petrol and diesel?

 HOLDEN CAPTIVA 7 CX, LX, LT, LTZ Auto CG CD26 01/2011~01/2019 4 Door SUV 4WD DIESEL 2.2 litre, Z22D1 (LNQ) I4 16v DOHC VVT Turbo Direct Inj {135kW} 

The Captiva Service Manual says the oil should be 5W30 (Dexos 2)

The Nulon web site says use Use 5W30 Diesel Dexos 2

The Diesel stuff has a 2 in the bottom right of the logo.


The diesel stuff has a yellow "30"

This has a 1 at the bottom right of the Dexos logo but has the word "Gen 2" at the bottom right of the label underthe word Dexos

From the Nulon Web site.

Highlights the "Diesel" version








 

 PHONE CALL WITH NULON
I was wondering what the difference between Dexus 1 Gen 2 and Dexus 2 was so I placed a question on the Nulon web site.  They called me.  It appears GM have decided to require very high spec oils and oil makes have to pay a lot to get the oil accredited so they can put the Dexus tag on their packaging. Apparently some needed to sort out a sub audible knocking on US 8 gear cars.  The Diesel oil can be used in petrol engines but not vis versa.

Costco did a deal with Nulon.  The Costco "Protect" range are basically the Dexus oils but of course GM would not honour any warranty stuff.

 26-12-2021 Update
Today did the oil change

 

This is the engine.  It's at the front of the vehicle.  To access the oil filter which is at the top left, I had to remove the oil filler cap per the video above and also undo and move the air tube.


I wiped out the inside of the oil filter with a paper towel.  The oil while black did not feel sandy.

The oil filter came with a new O ring.

I lubed it with some of the new oil.

I make ramps using some bricks.  The back wheels are chocked forward and aft.  Not keen on Jacks in case the car slips off.

Presented with a dilemma.  Which is the sump.  The video confirmed the black one.   assume the aluminum one is the gear box.
The left over oil was poured back into the original container.  This is  5L container and I put all 5L in but there was slightly more than 5L taken out.  The dip stick though has the new oil at the mid point.








 

 

 

Friday, December 10, 2021

Ashes Test at Gabba

My friend Richard invited me to the Gabba for day #3 of the ashes cricket test. 

The  Aust tail  were continuing batting today and eventually succumbed to the poms. 

Richard had gotten great seats on the Northern side.  Great being we were in the shade. It's a beautiful hot sunny day and sitting in the sun would have been a killer. 

Thursday, December 9, 2021

Christmas is coming...

I'm reminded that my life is a misfire.  This thing called family that I spent 24years and 11 months on.  A thing that to me was super valuable. Gone. The words on the radio, how people want to travel for Christmas to see family.  Serves to remind me that I failed. Lying in bed alone at 3am is a tough thing and every day reminds me of that failure. 

Centenary also a reminder that I'm just not there. I'm not part of the social circle. Mind you there's some pretty toxic people around. By that I mean people who deliberately take action to stymie others.  As distinct from those,  and we have them too, whose actions don't help themselves or others. And it's hard to see ones self and I assume I'm in there somewhere. I hate that I myself are even thinking in this hateful way that I see in the others I mentioned earlier. There are some good people too but I guess in my sadness the bad people tend to get the attention. 

At work,  I'm being eased off the gasbot board.  Another personal loss. I guess from a corporate perspective, the focus shifts from hardware to finance but still it's another personal loss. I have decided not to fight it.  I don't want to be where I'm not wanted. 

I guess in all of this I feel a loss of ownership. 

I think I need to find things where I've a combination of ownership,  value. Where I am wanted by others.  Where what I do is valuable/ useful / of benefit and where I get some reward. Enjoyment. 

Back to the Christmas thing.  Not sure what I'm going to do but right now,  Christmas dinner with the old family just does not seem right. 

Tuesday, November 30, 2021

Competition

 Reading "Zero to One"

Old monopolies no not strangle innovation. 
1950's and 60's IBM hardware monopoly over taken by Microsoft's software

Creative monopoly means innovation.  Dives progress.  Profits finance research.

Competition means no profits for anyone. 
High competition does not give time, money or head space to do the innovation that they so desperately need.

Competition is an ideology that pervades our society.  It's preached and taught from the day we are born.

Education drives and reflects our obsession with competition.

Grades allow precise measurement of each students competitiveness.

Pupils with the highest marks receive status and credentials.

We teach all students the same stuff in the same ways irrespective of individual talents or preferences.

Students who don't learn best by sitting still at a desk are made to feel inferior

Students who excel on conventional measures like tests and assignments end up defining their identities in terms of this weirdly contrived academic parallel reality.

Elite students climb confidently until they reach a level of competition sufficiently intense to beat their dreams out of them.

Higher education is the place where people who had big plans in high school get stuck in fierce rivalries with equally smart peers over conventional careers like management consultancy and investment banking.  For the privilege of being turned into conformists students and their families pay hundreds of thousands of dollars in tuition.

  

XMEGA ADC

 Trying to get my head around the Atmel Microchip XMEGA ADC.

Useful References

[1] http://ww1.microchip.com/downloads/en/Appnotes/00002535A.pdf

 

This picture seems to imply that all 16 inputs ADC0-ADC15 can be switched

Reference [1] "In devices with two ADCs, the inputs can only be connected to the corresponding port. Meaning that ADCA can be connected only to PORT A, and ADC B can be connected only to PORT B."

The XMEGA 128A1 has two ADCs

PROBLEM SOME ADC PINS READ WRONG

The ATXMEGA128 has 16 analogue inputs.  These are on Port A and Port B.
The first indication of the problem was that ADC12 which monitored the 5V rail was reading high.  I lifted the top resistor of the divider and so there was now a 5K2 resistor to GND.  Using a multimeter, it read 1.0V when I was expecting 0V.

I put a post on the BASCOM forum.

https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&p=81048#81048

and someone asked had i considered JTAG.

DOES JTAG INFLUENCE THIS?
A response to the MCSELEC forum post mentions JTAG Fuses.  I wonder.
What Pins?
JTAG Fuses?

Page 58 of the datasheet shows that indeed the JTAG uses pins on port B. 

Now I read the fuses

I note FUSEBYTE0 mentions JTAG  But what does it mean?

XMEGA A1U Datasheet
7.4 Fuses and Lock bits
The fuses are used to configure important system functions, and can only be written from an external programmer. The application software can read the fuses. The fuses are used to configure reset sources such as brownout detector and watchdog, startup configuration, JTAG enable, and JTAG user ID.

The lock bits are used to set protection levels for the different flash sections (that is, if read and/or write access should be blocked). Lock bits can be written by external programmers and application software, but only to stricter protection levels.

Chip erase is the only way to erase the lock bits. To ensure that flash contents are protected even during chip erase, the lock bits are erased after the rest of the flash memory has been erased.

An unprogrammed fuse or lock bit will have the value one, while a programmed fuse or lock bit will have the value zero.

Both fuses and lock bits are reprogrammable like the flash program memory

7.13 JTAG Disable
It is possible to disable the JTAG interface from the application software. This will prevent all external JTAG access to the device until the next device reset or until JTAG is enabled again from the application software. As long as JTAG is disabled, the I/O pins required for JTAG can be used as normal I/O pins.


So I add a line "DISABLE JTAG"

And that my friends fixed the problem!

This is my test program

'*******************************************************************************
' FILENAME:     ATXMEGA128A1 ADC Test x.bas
'
' PROCESSOR:    ATXMEGA128A1
' CLOCK:        16Mhz XTAL
' TITLE:
' BOARD:        0420-04 and 0420-01
' MODIFIED:     29-NOV-2021
' AUTHOR:       Frank Thomson
'*******************************************************************************
$regfile = "xm128A1Udef.dat" '"xm128A1Udef.dat" '  "C:\MCS\BASCAVR2082\DAT\xm128A1Udef.dat"
$framesize = 200         ' After global variables then after unused SRAM, grows bottom up, string conversion routines (PRINT, LCD, INPUT) require a buffer in SRAM
$swstack = 200           ' ISR routine parameters and grow top down
$hwstack = 200           ' Return address after routine call (SUB, FUNCTION, GOSUB) and grow top down

$crystal = 16000000

'Config Osc = Enabled , 32mhzosc = Enabled         ' enable 2 MHz and 32 MHz internal oscillators
'Config Sysclock = 32mhz , Prescalea = 1 , Prescalebc = 1_1

Config osc = disabled , EXTOSC = enabled , 32KHZOSC=DISABLED, pllosc = enabled , range = 12MHZ_16MHZ , startup = XTAL_16KCLK , pllsource = extclock , pllmul = 1
Config Sysclock = PLL , Prescalea = 1 , Prescalebc = 1_1

Disable Jtag   <-- This is the fix
'$sim                    ' Comment this out for real program

' INITIALIZE HARDWARE
'PORT A has the first 8 Analogue inputs.
' Can only be read with ADCA
'                  TypRead
'PORT A.0 - 0 ADC0  -  1  Connects to GND  0R
'     A.1 - 0 ADC1    13   16k to GND
'     A.2 - 0 ADC2    22   16k to GND
'     A.3 - 0 ADC3    19   16k to GND
'     A.4 - 0 ADC4    17   16k to GND
'     A.5 - 0 ADC5    14   16k to GND
'     A.6 - 0 ADC6    34   24k to GND
'     A.7 - 1 ADC7    34   24k to GND
Config Porta = &B00000000    ' All IN
Porta = &B00000000
' PORT B Has another 8 ADCs  They can only be read with ADCB
'          DDR      TypRead
'PORT B.0 - 0 ADC8      7   Test Point TP126  (Open Circuit)
'     B.1 - 0 ADC9   1189   RF Power Detector via divider 2k4 x 750R to GND
'     B.2 - 1 ADC10 - 437   DAC1 output Not normally used for ADC
'     B.3 - 0 ADC11   324   Test Point TP127   (Open Circuit)
'     B.4 - 0 ADC12  1613   8K2 to GND
'     B.5 - 0 ADC13   841   Adjustable regulator via  12k x 3k0  to GND
'     B.6 - 0 ADC14  1482   12V input mon via divider 18k x 1k5  to GND
'     B.7 - 0 ADC15  1652   3V3 rail mon via divider  12k x 3k0  to GND
'                76543210
Config Portb = &B00000100
Portb = &B00000000
' PORTS C, D, E, F, H, J, K, Q Default to ALL INPUTS
' Except Port D which has a LED
'PORT D.0 - 0   0  LED SPARE 2
'     D.1 - 0   0  LED SPARE 1
'     D.2 - 0   0  LED FAIL
'     D.3 - 0   0  LED STATUS
'     D.4 - 0   0  LED TESTING
'     D.5 - 0   0  LED DEVICE
'     D.6 - 0   0  Reserved for USB N
'     D.7 - 0   0  Reserved for USB N
'                76543210
Config PortD = &B00000011
PortD        = &B00000000
'---- INITIALISE COMMS ---------------------------------------------------------------------
 
Config Com5 = 9600 , mode = ASYNCHRONEOUS, Parity = None , Stopbits = 1 , Databits = 8
 
Open "COM5:" For Binary As #6
 
Config Serialin6 = Buffered , Size = 10
'----- INITIALISE ADC ----------------------------------------------------------------------
' The XMEGA128A1 has two Analogue to Digital Converters.
' Inputs ADC0 to 7  can only be routed by the MUX register to ADCA and 8-15 to ADCB.
' There are 4 channels - For these tests we will only use Channel 0
' Prescaler= 4, 8, 16, 32, 64, 128, 256 and 512
' DIFFERENTIAL MODE
'Config Adca = Single , Convmode = signed , Resolution = 12bit , Dma = Off , Reference = Int1v , Event_mode = None , Prescaler = 512 , Ch0_gain = 1 , Ch0_inp = diff , Mux0 = &B0000000, Ch1_gain = 1 , Ch1_inp = INTERNAL , Mux1 = &B1_000 , Ch2_gain = 1 , Ch2_inp = Single_ended , Mux2 = &B10000000 , Ch3_gain = 1 , Ch3_inp = DIFF , Mux3 = &B1100000
'Config AdcB = Single , Convmode = signed , Resolution = 12bit , Dma = Off , Reference = Int1v , Event_mode = None , Prescaler = 512 , Ch0_gain = 1 , Ch0_inp = diff , Mux0 = &B0000000, Ch1_gain = 1 , Ch1_inp = INTERNAL , Mux1 = &B1_000 , Ch2_gain = 1 , Ch2_inp = Single_ended , Mux2 = &B10000000 , Ch3_gain = 1 , Ch3_inp = DIFF , Mux3 = &B1100000
' SINGLE ENDED
Config Adca = Single , Convmode = signed , Resolution = 12bit , Dma = Off , Reference = Int1v , Event_mode = None , Prescaler = 512 , Ch0_gain = 1 , Ch0_inp = SINGLE_ENDED , Mux0 = &B0000000, Ch1_gain = 1 , Ch1_inp = INTERNAL , Mux1 = &B1_000 , Ch2_gain = 1 , Ch2_inp = Single_ended , Mux2 = &B10000000 , Ch3_gain = 1 , Ch3_inp = DIFF , Mux3 = &B1100000
Config AdcB = Single , Convmode = signed , Resolution = 12bit , Dma = Off , Reference = Int1v , Event_mode = None , Prescaler = 512 , Ch0_gain = 1 , Ch0_inp = SINGLE_ENDED , Mux0 = &B0000000, Ch1_gain = 1 , Ch1_inp = INTERNAL , Mux1 = &B1_000 , Ch2_gain = 1 , Ch2_inp = Single_ended , Mux2 = &B10000000 , Ch3_gain = 1 , Ch3_inp = DIFF , Mux3 = &B1100000



' MUX is
' See Table 28-16 page 362 of XMEGA Manual "Differential without gain"
'      7 6 5 4 3 2 1 0
'     /  | | | | \ \ \  MUXNEG DIFFERENTIAL    SINGLE_ENDED
' Not    Positive \ \ \Negative Side           MUXNEG is IGNORED
' Used   Side of       Of the ADC
'        ADC           0 0 0 = ADC0Pin
'        = Channel
'        Number        1 0 1 = PAD Ground
'                      1 1 0 = Reserved
'                      1 1 1 = Internal Ground
'
'-----DIMENSION VARIABLES-------------------------------------------------------------------
dim k_b as byte    ' Used to hold input
Dim LEDcounter as word
dim i as byte
dim mux as byte
Dim myADCX as integer
dim MUXNEG as byte :  MUXNEG = &b00000101     ' See table above.


'-----MAIN PROGRAM START---------------------------------------------------------------------
portd.0 = 1 ' LED SPARE 2 ON
Print #6 ,
print #6, "AT X Mega 128A1U ADC Program";


loopforever
:
k_b
= Inkey(#6)  ' Get a byte from the uart.  Loop keeps running
if k_b > 0 Then  ' we have a character
   
print #6, chr(k_b)   'echo it
   
' ----READ ALL 16 ADCs------------------------------------------
   
For i = 0 to 15
        mux
= i * 8
        mux
= mux and &b01111000    ' Make sure LS 3 bits are zero
        mux
= mux OR MUXNEG         ' Add in the LS 3 bits
       
if i <= 7 then
            myADCX
= getadc(ADCA, 0 , mux)  ' ADC inputs 0-7 can be routed to ADCA only
       
else
            myADCX
= getadc(ADCB, 0 , mux)  ' ADC inputs 8-15 can be routed to ADCB only
       
end if
       
'Print #6, i ; " ,  "; myADCX
       
Print #6, myADCX
   
Next i
end if

' Heartbeat LED
LEDcounter  
=    LEDcounter  + 1
if LEDcounter >= 60000 then
   
toggle portd.1   'FAIL LED ON OFF
    LEDcounter
= 0
end if


goto loopforever

 

U

No U

[AU] SINGLE_ENDED  UNSIGNED  

Read A from A & Subtract PA0
Read B from A & subtract PA0

Read A from A & Subtract PA0
Read B from B & subtract PA0

      ADC0-7b Port A

PA0=0V reads 166

PA1=0                       PA1=1V =

PA0 0V reads 138

PA1=0  reads 157    =1V=4095

      ADC8-15 Port B

11 PB3=0V Reads  182   =1V 4095

All show up on ADC A.  ADCB is crap

 8 PB0 0V =     1V = 4095

11 PB3=0V = 1   @1V=2047

These show up on ADCB as both 0-7 and 8-15

 

 

 

[AS] SINGLE ENDED SIGNED

Read A from A
Read B from
A

Read A from A
Read B from B

      ADC0-7b Port A

PA0=0V reads -10

PA1=0V=   @1=2047

ON ADCA

PA0=0V Reads -3

PA1=0V = -3  @1=2047

      ADC8-15 Port B

Show up on ADCA

08 PB0=0V = 5  @1V= 2047

11 PB3=0V =0  @1V = 2047

ON ADCB

 8 PB0=0V = 0   @1V=2047

11PB3=0V = 1   @1V=2047

 

 

 

Signed DIFFERENTIAL  
muxNeg = 000 as PortA.0

 

Read A from A.

Read B from B but unsure how to correct

      ADC0-7b Port A

ADC A Works. -? To  2047 

0V in read about -6

PA0=0V reads -1

PA1=0V  = 0   @1V=2047

      ADC8-15 Port B

ADC A 8-15 seems to work.

0V in read about -6
ADCB never seems to have anything sensible.  All read 600-900

 8 PB0=0V= -530    @1V=+1850

11PB3=1V=      @1V=-2048
Note negatives
This is weird. 

Signed DIFFERENTIAL  
muxNeg = 111 Internal Ground

 

 

      ADC0-7b Port A

ADC A -? To +2047.  With 0V in, Read about -28

PA0 reads -1

      ADC8-15 Port B

ADC A 8-15 seems to work.
ADCB never seems to have anything sensible

Results show up on ADCB

08 PB0 0V = -522 1V = 1737
Note 1737 + 522 = 2259 ???

 

 

 

Note with MuxNex set to 111, the registers read back 011 = ADC3 pin

 

 

 


PROBLEM: EEPROM IS NOT BEING RETAINED

XMEGA128A1U

Is it a Fuse issue?
Fuse Byte 0 OxFF JTAG UID So we assume no
Fuse Byte 1 0x00  Watchdog stuff - We assume no
Fuse Byte 2 0xFF  6 BOOTRST 5 TOSCSEL - We assume no
Fuse Byte 3
Fuse Byte 4 - no
Fuse Byte 5 Bit 3 EESAVE
Bit 3 – EESAVE: EEPROM is Preserved through the Chip Erase
A chip erase command will normally erase the flash, EEPROM, and internal SRAM. If this fuse is programmed, the
EEPROM is not erased during chip erase. This is useful if EEPROM is used to store data independently of the
software revision.
Table 4-8. EEPROM preserved through chip erase.
Changes to the EESAVE fuse bit take effect immediately after the write timeout elapses. Hence, it is possible to
update EESAVE and perform a chip erase according to the new setting of EESAVE without leaving and reentering
programming mode

     7654 3210
37 = 0011 0111
          1    1= EEPROM Erased during chip erase
          0    0= Preserved