KiCad 5 Simulate BF862 NJF Parameter ignored ngspice


#1

Hello Everybody
I have from the Internet a Spice Model of the BF862
But I cant simulate it
The error is: ‘unrecognized parameter (betatce) - ignored
The hole Spice Netlist:

Circuit: KiCad schematic
Error on line 0 :
q.xq1.q1 xq1.4 xq1.7 xq1.6 xq1:jbf862
incorrect model type
Warning: Model issue on line 0 :
.model xq1:jbf862 njf beta=47.800e-3 rs=7.5000 lambda=37.300e-3 vto=-.57 …
unrecognized parameter (betatce) - ignored
unrecognized parameter (vtotc) - ignored
unrecognized parameter (isr) - ignored
unrecognized parameter (n) - ignored
unrecognized parameter (nr) - ignored
unrecognized parameter (xti) - ignored
unrecognized parameter (alpha) - ignored
unrecognized parameter (vk) - ignored
unrecognized parameter (m) - ignored
Reducing trtol to 1 for xspice ‘A’ devices
Doing analysis at TEMP = 27,000000 and TNOM = 27,000000
Warning: v1: no DC value, transient time 0 value used
Initial Transient Solution

Is it not posible to simulate a NJF with ngspice


#2

It is possible to simulate a NJF device with ngspice.

Your device instance line
q.xq1.q1 xq1.4 xq1.7 xq1.6 xq1:jbf862
starts with the letter ‘q’. This letter is reserved for bipolar transistors. A JFET (NJF) device instance line (so the device name) has to start with the letter ‘j’.


#3

How can I cange this?
My SPICE Netlist seems to be ok

.title KiCad schematic
.include “C:\Users\wieder\Nextcloud\Elektronik\Spice\lib\BF862.lib”
.include “C:\Users\wieder\Nextcloud\Elektronik\Spice\lib\OPA657.lib”
XU1 /OUT -6V Net-J1-Pad2 GND +6V OPA657
R1 -6V Net-J1-Pad2 220
C1 /OUT /IN 1p
V1 GND /Source ac 1 pulse(0 1 10n 1n 1n 10n 20n)
C2 /IN /Source 10n
R2 /IN /OUT 220
XJ1 /IN Net-J1-Pad2 +6V BF862
.save @r1[i]
.save @c1[i]
.save @v1[i]
.save @c2[i]
.save @r2[i]
.save V(+6V)
.save V(-6V)
.save V(/IN)
.save V(/OUT)
.save V(/Source)
.save V(GND)
.save V(Net-J1-Pad2)
.tran .1ns 100n
.end


#4

and the .model is this

  • BF862 SPICE MODEL MARCH 2007 NXP SEMICONDUCTORS
  • ENVELOPE SOT23
  • JBF862: 1, Drain, 2,Gate, 3,Source
    .SUBCKT BF862 1 2 3
    Ld 1 4 L= 1.1nH
    Ls 3 6 L= 1.25nH
    Lg 2 5 L= 0.78nH
    Rg 5 7 R= 0.535
    Cds 1 3 C= 0.0001pF
    Cgs 2 3 C= 1.05pF
    Cgd 1 2 C= 0.201pF
    Co 4 6 C= 0.35092pF
    Q1 4 7 6 JBF862
    .model JBF862 NJF
  • Beta=47.800E-3 Rs=7.5000 Lambda=37.300E-3 Vto=-.57093 Is=424.60E-12 Cgd=7.4002E-12
  • Pb=.5 Fc=.5 Cgs=8.2890E-12 Kf=87.5E-18 Af=1) Rd=.8 Betatce=-.5
  • Vtotc=-2.0000E-3 Isr=2.995p N=1 Nr=2 Xti=3 Alpha=-1.0000E-3 Vk=59.97 M=.6015
    .ENDS BF862

#5

In the subcircuit, change line
Q1 4 7 6 JBF862
to
J1 4 7 6 JBF862


#6

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.